- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xowiki::MenuItem
::xowiki::MenuItem create ... \
[ -CSSclass CSSclass ] \
[ -group (default "") ] \
[ -href href ] \
[ -id (default "[:html_id]") ] \
[ -linkclass linkclass ] \
[ -listener listener ] \
[ -style style ] \
[ -target target ] \
[ -text text ] \
[ -title title ]
Defined in
Class Relations
- class: ::xo::tdom::Class
- superclass: ::xowiki::MenuComponent
- subclass: ::xowiki::BootstrapNavbarDropdownMenuItem, ::xowiki::BootstrapNavbarModeButton, ::xowiki::YUIMenuItem
::xo::tdom::Class create ::xowiki::MenuItem \ -superclass ::xowiki::MenuComponentMethods (to be applied on instances)
CSSclass (setter)
group (setter)
href (setter)
id (setter)
init (scripted, private)
<instance of xowiki::MenuItem> init args [ args... ]doku
- Parameters:
- args (required)
- Testcases:
- create_folder_with_page, create_workflow_with_instance
next # Use computed default values when not specified if {![info exists :title]} { # set the mouseover-title to the "MenuItem-Label" # TODO: Do we really want "text" to be required ? set :title ${:text} } if {![info exists :CSSclass]} { # set the CSS class to e.g. "yuimenuitem" set :CSSclass [string tolower [namespace tail [:info class]]] } if {![info exists :href] || ${:href} eq ""} { append :CSSclass " " [string tolower [namespace tail [:info class]]]-disabled } if {![info exists :linkclass]} { # set the CSS class to e.g. "yuimenuitemlabel" set :linkclass [string tolower [namespace tail [:info class]]]label }linkclass (setter)
listener (setter)
render (scripted, public)
<instance of xowiki::MenuItem> renderdoku
- Testcases:
- No testcase defined.
html::li [:get_attributes id {CSSclass class}] { html::a [:get_attributes title href target] { html::t ${:text} } }style (setter)
target (setter)
text (setter)
title (setter)
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables