Class ::xowiki::BootstrapNavbar (public)
::xo::tdom::Class ::xowiki::BootstrapNavbar
Defined in
- Testcases:
-
No testcase defined.
Source code:
namespace eval ::xowiki {}
::nsf::object::alloc ::xo::tdom::Class ::xowiki::BootstrapNavbar {set :__default_metaclass ::xotcl::Class
set :__default_superclass ::xotcl::Object}
::xowiki::BootstrapNavbar instproc init {} {
::xo::Page requireJS urn:ad:js:jquery
::template::CSS require_toolkit -css -js
next
}
::xowiki::BootstrapNavbar instproc render {} {
html::nav -class [template::CSS classes ${:navbarClass}] -role "navigation" -style "background-color: #f8f9fa;" {
html::div -class ${:containerClass} {
set rightMenuEntries {}
html::ul -class "nav navbar-nav px-3" {
foreach entry [:children] {
if {[$entry istype ::xowiki::BootstrapNavbarDropdownMenu]} {
$entry render
} else {
lappend rightMenuEntries $entry
}
}
}
if {[llength $rightMenuEntries] > 0} {
html::ul -class "nav navbar-nav [::template::CSS class navbar-right]" {
foreach entry $rightMenuEntries {
$entry render
}
}
}
}
}
}
::xowiki::BootstrapNavbar instparametercmd navbarClass
::xowiki::BootstrapNavbar instparametercmd containerClass
::xowiki::BootstrapNavbar instparametercmd autorender
::xowiki::BootstrapNavbar instparametercmd menubar
::nsf::relation::set ::xowiki::BootstrapNavbar superclass ::xowiki::Menu
::nx::slotObj -container slot ::xowiki::BootstrapNavbar
::xowiki::BootstrapNavbar::slot eval {set :__parameter {
{autorender false}
{menubar}
{containerClass "container-fluid px-0"}
{navbarClass "navbar navbar-expand-lg navbar-default navbar-static-top mx-2 p-0"}
}}
::nsf::object::alloc ::xotcl::Attribute ::xowiki::BootstrapNavbar::slot::navbarClass {set :accessor public
set :configurable true
set :convert false
set :default {navbar navbar-expand-lg navbar-default navbar-static-top mx-2 p-0}
set :defaultmethods {}
set :disposition alias
set :domain ::xowiki::BootstrapNavbar
set :incremental 0
set :manager ::xowiki::BootstrapNavbar::slot::navbarClass
set :methodname navbarClass
set :multiplicity 1..1
set :name navbarClass
set :per-object false
set :position 0
set :required false
set :substdefault 0b111
set :trace none
: init}
::nsf::object::alloc ::xotcl::Attribute ::xowiki::BootstrapNavbar::slot::autorender {set :accessor public
set :configurable true
set :convert false
set :default false
set :defaultmethods {}
set :disposition alias
set :domain ::xowiki::BootstrapNavbar
set :incremental 0
set :manager ::xowiki::BootstrapNavbar::slot::autorender
set :methodname autorender
set :multiplicity 1..1
set :name autorender
set :per-object false
set :position 0
set :required false
set :substdefault 0b111
set :trace none
: init}
::nsf::object::alloc ::xotcl::Attribute ::xowiki::BootstrapNavbar::slot::containerClass {set :accessor public
set :configurable true
set :convert false
set :default {container-fluid px-0}
set :defaultmethods {}
set :disposition alias
set :domain ::xowiki::BootstrapNavbar
set :incremental 0
set :manager ::xowiki::BootstrapNavbar::slot::containerClass
set :methodname containerClass
set :multiplicity 1..1
set :name containerClass
set :per-object false
set :position 0
set :required false
set :substdefault 0b111
set :trace none
: init}
::nsf::object::alloc ::xotcl::Attribute ::xowiki::BootstrapNavbar::slot::menubar {set :accessor public
set :configurable true
set :convert false
set :defaultmethods {}
set :disposition alias
set :domain ::xowiki::BootstrapNavbar
set :incremental 0
set :manager ::xowiki::BootstrapNavbar::slot::menubar
set :methodname menubar
set :multiplicity 1..1
set :name menubar
set :per-object false
set :position 0
set :required false
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 ]