%3 ::xowiki::YUIContextMenu ::xowiki::YUIContextMenu render ::xowiki::YUIMenu ::xowiki::YUIMenu render ::xowiki::YUIContextMenu->::xowiki::YUIMenu ::xowiki::YUIMenuBar ::xowiki::YUIMenuBar render ::xowiki::YUIMenuBar->::xowiki::YUIMenu ::xowiki::Menu ::xowiki::Menu render ::xowiki::YUIMenu->::xowiki::Menu ::xowiki::MenuComponent ::xowiki::MenuComponent ::xowiki::Menu->::xowiki::MenuComponent

Class ::xowiki::YUIMenuBar

::xowiki::YUIMenuBar[i] create ... \
           [ -navbar (default "true") ]

Class Relations

  • class: ::xo::tdom::Class[i]
  • superclass: ::xowiki::YUIMenu[i]
::xo::tdom::Class create ::xowiki::YUIMenuBar \
     -superclass ::xowiki::YUIMenu

Methods (to be applied on instances)

  • render (scripted, public)

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

    http://developer.yahoo.com/yui/menu/#menubar MenuBar looks best without a header and with one MenuItemList only

    Partial Call Graph (max 5 caller/called nodes):
    %3 html::div html::div html::t html::t html::ul html::ul xowiki::YUIMenuBar instproc render xowiki::YUIMenuBar instproc render xowiki::YUIMenuBar instproc render->html::div xowiki::YUIMenuBar instproc render->html::t xowiki::YUIMenuBar instproc render->html::ul

    Testcases:
    No testcase defined.
    append :CSSclass " yuimenubar"
    set :extrajs ""
    if {[:navbar]} {append :CSSclass " yuimenubarnav"}
    html::div [:get_attributes id {CSSclass class}] {
      html::div -class "bd" {
        html::t \n
        html::ul -class "first-of-type" {
          foreach li [:children] {$li render}
        }
        html::t \n
      }
      html::t \n
      ::xo::Page set_property body class "yui-skin-sam"
      ::xo::Page requireJS "YAHOO.util.Event.onDOMReady(function () {
            var [:js_name] = new YAHOO.widget.MenuBar('[:id]', ${:configuration});
            [:js_name].render();
            ${:extrajs}
      });"
    }