xowiki::YUIMenuItem instproc render (public)

 <instance of xowiki::YUIMenuItem[i]> render

Defined in packages/xowiki/tcl/yui-procs.tcl

doku

Partial Call Graph (max 5 caller/called nodes):
%3 html::a html::a html::em html::em html::li html::li html::t html::t xowiki::YUIMenuItem instproc render xowiki::YUIMenuItem instproc render xowiki::YUIMenuItem instproc render->html::a xowiki::YUIMenuItem instproc render->html::em xowiki::YUIMenuItem instproc render->html::li xowiki::YUIMenuItem instproc render->html::t

Testcases:
No testcase defined.
Source code:
html::li [:get_attributes id {CSSclass class} style] {
  # if we have no href, mark entry as disabled
  if {![info exists :href] || [:href] eq ""} {append :linkclass " disabled"}
  if {[info exists :listener] && ${:listener} ne ""} {
    #ns_log notice "menuitem has id [:id] listener [:listener] parent ${:__parent} [${:__parent} info class]"
    lassign [:listener] type body
    ${:__parent} append extrajs [subst {
      document.getElementById('[:id]').addEventListener('$type', function (event) {
        $body;
      }, false);
    }]
  }
  html::a [:get_attributes target href {linkclass class} title] {
    html::t [:text]
    if {[info exists :helptext]} {
      html::em {
        html::t [:helptext]
      }
    }
  }
  foreach menu [:children] {$menu render}
}
html::t \n
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: