- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xowiki::YUIMenuBar
::xowiki::YUIMenuBar create ... \
[ -navbar (default "true") ]
Defined in
Class Relations
::xo::tdom::Class create ::xowiki::YUIMenuBar \ -superclass ::xowiki::YUIMenuMethods (to be applied on instances)
navbar (setter)
render (scripted, public)
<instance of xowiki::YUIMenuBar> renderhttp://developer.yahoo.com/yui/menu/#menubar MenuBar looks best without a header and with one MenuItemList only
- 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} });" }
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables