Class ::xowiki::BootstrapNavbarDropdownMenu (public)
::xo::tdom::Class ::xowiki::BootstrapNavbarDropdownMenu
Defined in
- Testcases:
-
No testcase defined.
Source code:
namespace eval ::xowiki {}
::nsf::object::alloc ::xo::tdom::Class ::xowiki::BootstrapNavbarDropdownMenu {set :__default_metaclass ::xotcl::Class
set :__default_superclass ::xotcl::Object}
::xowiki::BootstrapNavbarDropdownMenu instproc render {} {
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
}
}
}
}
::xowiki::BootstrapNavbarDropdownMenu instparametercmd header
::xowiki::BootstrapNavbarDropdownMenu instparametercmd text
::xowiki::BootstrapNavbarDropdownMenu instparametercmd brand
::nsf::relation::set ::xowiki::BootstrapNavbarDropdownMenu superclass ::xowiki::Menu
::nx::slotObj -container slot ::xowiki::BootstrapNavbarDropdownMenu
::xowiki::BootstrapNavbarDropdownMenu::slot eval {set :__parameter {
text
header
{brand false}
}}
::nsf::object::alloc ::xotcl::Attribute ::xowiki::BootstrapNavbarDropdownMenu::slot::text {set :accessor public
set :configurable true
set :convert false
set :defaultmethods {}
set :disposition alias
set :domain ::xowiki::BootstrapNavbarDropdownMenu
set :incremental 0
set :manager ::xowiki::BootstrapNavbarDropdownMenu::slot::text
set :methodname text
set :multiplicity 1..1
set :name text
set :per-object false
set :position 0
set :required false
set :trace none
: init}
::nsf::object::alloc ::xotcl::Attribute ::xowiki::BootstrapNavbarDropdownMenu::slot::header {set :accessor public
set :configurable true
set :convert false
set :defaultmethods {}
set :disposition alias
set :domain ::xowiki::BootstrapNavbarDropdownMenu
set :incremental 0
set :manager ::xowiki::BootstrapNavbarDropdownMenu::slot::header
set :methodname header
set :multiplicity 1..1
set :name header
set :per-object false
set :position 0
set :required false
set :trace none
: init}
::nsf::object::alloc ::xotcl::Attribute ::xowiki::BootstrapNavbarDropdownMenu::slot::brand {set :accessor public
set :configurable true
set :convert false
set :default false
set :defaultmethods {}
set :disposition alias
set :domain ::xowiki::BootstrapNavbarDropdownMenu
set :incremental 0
set :manager ::xowiki::BootstrapNavbarDropdownMenu::slot::brand
set :methodname brand
set :multiplicity 1..1
set :name brand
set :per-object false
set :position 0
set :required false
set :substdefault 0b111
set :trace none
: init}
namespace eval ::xowiki {::namespace export Menu YUIMenuBar YUIMenuBarItem YUIMenu YUIMenuItem YUIMenuItemList YUIContextMenu YUIContextMenuItem}
XQL Not present:Generic, PostgreSQL, Oracle
[
hide source ]
| [
make this the default ]