Class ::xowiki::BootstrapNavbarDropdownMenuItem (public)
::xo::tdom::Class ::xowiki::BootstrapNavbarDropdownMenuItem
Defined in
- Testcases:
-
No testcase defined.
Source code:
namespace eval ::xowiki {}
::nsf::object::alloc ::xo::tdom::Class ::xowiki::BootstrapNavbarDropdownMenuItem {set :__default_metaclass ::xotcl::Class
set :__default_superclass ::xotcl::Object}
::xowiki::BootstrapNavbarDropdownMenuItem instproc render {} {
set disabledClass [expr {${:href} eq "" ? "disabled" : ""}]
html::li -class [string trimright "nav-item $disabledClass"] {
set :CSSclass [string trimright "dropdown-item $disabledClass"]
html::a [:get_attributes target href title id {CSSclass class}] {
html::t ${:text}
}
}
html::t \n
if {[info exists :listener] && ${:listener} ne ""} {
lassign ${:listener} type body
template::add_event_listener -event $type -id ${:id} -preventdefault=false -script $body
}
}
::xowiki::BootstrapNavbarDropdownMenuItem instparametercmd href
::xowiki::BootstrapNavbarDropdownMenuItem instparametercmd helptext
::nsf::relation::set ::xowiki::BootstrapNavbarDropdownMenuItem superclass ::xowiki::MenuItem
::nx::slotObj -container slot ::xowiki::BootstrapNavbarDropdownMenuItem
::xowiki::BootstrapNavbarDropdownMenuItem::slot eval {set :__parameter {
{href "#"}
helptext
}}
::nsf::object::alloc ::xotcl::Attribute ::xowiki::BootstrapNavbarDropdownMenuItem::slot::helptext {set :accessor public
set :configurable true
set :convert false
set :defaultmethods {}
set :disposition alias
set :domain ::xowiki::BootstrapNavbarDropdownMenuItem
set :incremental 0
set :manager ::xowiki::BootstrapNavbarDropdownMenuItem::slot::helptext
set :methodname helptext
set :multiplicity 1..1
set :name helptext
set :parameterSpec -helptext
set :per-object false
set :position 0
set :required false
set :trace none
: init}
::nsf::object::alloc ::xotcl::Attribute ::xowiki::BootstrapNavbarDropdownMenuItem::slot::href {set :accessor public
set :configurable true
set :convert false
set :default #
set :defaultmethods {}
set :disposition alias
set :domain ::xowiki::BootstrapNavbarDropdownMenuItem
set :incremental 0
set :manager ::xowiki::BootstrapNavbarDropdownMenuItem::slot::href
set :methodname href
set :multiplicity 1..1
set :name href
set :parameterSpec {-href:substdefault #}
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 ]