Class ::xowiki::YUIMenuBar (public)
::xo::tdom::Class ::xowiki::YUIMenuBar
Defined in
- Testcases:
-
No testcase defined.
Source code:
namespace eval ::xowiki {}
::nsf::object::alloc ::xo::tdom::Class ::xowiki::YUIMenuBar {set :__default_metaclass ::xotcl::Class
set :__default_superclass ::xotcl::Object}
::xowiki::YUIMenuBar instproc render {} {
append :CSSclass " yuimenubar"
set :extrajs ""
if {[:navbar]} {append :CSSclass " yuimenubarnav"}
html::div [:get_attributes id {CSSclass class}] {
html::div -class "bd" {
html::t \n
html::ul -class "first-of-type" {
foreach li [:children] {$li render}
}
html::t \n
}
html::t \n
::xo::Page set_property body class "yui-skin-sam"
::xo::Page requireJS "YAHOO.util.Event.onDOMReady(function () {
var [:js_name] = new YAHOO.widget.MenuBar('[:id]', ${:configuration});
[:js_name].render();
${:extrajs}
});"
}
}
::xowiki::YUIMenuBar instparametercmd navbar
::nsf::relation::set ::xowiki::YUIMenuBar superclass ::xowiki::YUIMenu
::nx::slotObj -container slot ::xowiki::YUIMenuBar
::xowiki::YUIMenuBar::slot eval {set :__parameter {
{navbar true}
}}
::nsf::object::alloc ::xotcl::Attribute ::xowiki::YUIMenuBar::slot::navbar {set :accessor public
set :configurable true
set :convert false
set :default true
set :defaultmethods {}
set :disposition alias
set :domain ::xowiki::YUIMenuBar
set :incremental 0
set :manager ::xowiki::YUIMenuBar::slot::navbar
set :methodname navbar
set :multiplicity 1..1
set :name navbar
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 ]