%3 ::xowiki::BootstrapNavbarDropdownMenuItem ::xowiki::BootstrapNavbarDropdownMenuItem render ::xowiki::MenuItem ::xowiki::MenuItem init render ::xowiki::BootstrapNavbarDropdownMenuItem->::xowiki::MenuItem ::xowiki::BootstrapNavbarModeButton ::xowiki::BootstrapNavbarModeButton ::xowiki::BootstrapNavbarModeButton->::xowiki::MenuItem ::xowiki::YUIMenuItem ::xowiki::YUIMenuItem render ::xowiki::YUIMenuItem->::xowiki::MenuItem ::xowiki::MenuComponent ::xowiki::MenuComponent ::xowiki::MenuItem->::xowiki::MenuComponent ::xowiki::YUIContextMenuItem ::xowiki::YUIContextMenuItem ::xowiki::YUIContextMenuItem->::xowiki::YUIMenuItem ::xowiki::YUIMenuBarItem ::xowiki::YUIMenuBarItem ::xowiki::YUIMenuBarItem->::xowiki::YUIMenuItem

Class ::xowiki::YUIMenuItem

::xowiki::YUIMenuItem[i] create ... \
           [ -helptext helptext ] \
           [ -href (default "#") ]

Class Relations

  • class: ::xo::tdom::Class[i]
  • superclass: ::xowiki::MenuItem[i]
  • subclass: ::xowiki::YUIContextMenuItem[i], ::xowiki::YUIMenuBarItem[i]
::xo::tdom::Class create ::xowiki::YUIMenuItem \
     -superclass ::xowiki::MenuItem

Methods (to be applied on instances)

  • render (scripted, public)

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

    doku

    Partial Call Graph (max 5 caller/called nodes):
    %3

    Testcases:
    No testcase defined.
    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