- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xowiki::YUIMenuItem
::xowiki::YUIMenuItem create ... \
[ -helptext helptext ] \
[ -href (default "#") ]
Defined in
Class Relations
- class: ::xo::tdom::Class
- superclass: ::xowiki::MenuItem
- subclass: ::xowiki::YUIContextMenuItem, ::xowiki::YUIMenuBarItem
::xo::tdom::Class create ::xowiki::YUIMenuItem \ -superclass ::xowiki::MenuItemMethods (to be applied on instances)
render (scripted, public)
<instance of xowiki::YUIMenuItem> renderdoku
- 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 \nVariables
::xowiki::YUIMenuItem set __default_metaclass ::xotcl::Class ::xowiki::YUIMenuItem set __default_superclass ::xotcl::Object
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables