- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xowiki::BootstrapNavbarDropdownMenu
::xowiki::BootstrapNavbarDropdownMenu create ... \
[ -brand (default "false") ] \
[ -header header ] \
[ -text text ]
Defined in
Class Relations
::xo::tdom::Class create ::xowiki::BootstrapNavbarDropdownMenu \ -superclass ::xowiki::MenuMethods (to be applied on instances)
brand (setter)
header (setter)
render (scripted, public)
<instance of xowiki::BootstrapNavbarDropdownMenu> renderdoku
- Testcases:
- create_folder_with_page, create_workflow_with_instance
# TODO: Add support for group-headers # get group header set group " " html::li -class "nav-item dropdown" { set class "nav-link dropdown-toggle" if {${:brand}} { lappend class "navbar-brand" } set data_attribute [expr {[::template::CSS toolkit] eq "bootstrap5" ? "data-bs" : "data"}] html::a -href "\#" -class $class -$data_attribute-toggle "dropdown" { html::t ${:text} } html::ul -class "dropdown-menu" { foreach dropdownmenuitem [:children] { if {[$dropdownmenuitem set group] ne "" && [$dropdownmenuitem set group] ne $group } { if {$group ne " "} { html::li -class "divider dropdown-divider" } set group [$dropdownmenuitem set group] } $dropdownmenuitem render } } }text (setter)
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables