%3 ::xowiki::BootstrapNavbarDropdownMenuItem ::xowiki::BootstrapNavbarDropdownMenuItem render ::xowiki::MenuItem ::xowiki::MenuItem init render ::xowiki::BootstrapNavbarDropdownMenuItem->::xowiki::MenuItem ::xowiki::BootstrapNavbarModeButton ::xowiki::BootstrapNavbarModeButton ::xowiki::BootstrapNavbarModeButton->::xowiki::MenuItem ::xowiki::YUIMenuItem ::xowiki::YUIMenuItem render ::xowiki::YUIMenuItem->::xowiki::MenuItem ::xowiki::MenuComponent ::xowiki::MenuComponent ::xowiki::MenuItem->::xowiki::MenuComponent ::xo::tdom::Object ::xo::tdom::Object ::xowiki::MenuComponent->::xo::tdom::Object

Class ::xowiki::BootstrapNavbarDropdownMenuItem

::xowiki::BootstrapNavbarDropdownMenuItem[i] create ... \
           [ -helptext helptext ] \
           [ -href (default "#") ]

Defined in

Class Relations

  • class: ::xo::tdom::Class[i]
  • superclass: ::xowiki::MenuItem[i]
::xo::tdom::Class create ::xowiki::BootstrapNavbarDropdownMenuItem \
     -superclass ::xowiki::MenuItem

Methods (to be applied on instances)

  • render (scripted, public)

     <instance of xowiki::BootstrapNavbarDropdownMenuItem[i]> render

    doku

    Testcases:
    create_folder_with_page, create_workflow_with_instance
    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
    }

Variables

::xowiki::BootstrapNavbarDropdownMenuItem set __default_metaclass ::xotcl::Class
::xowiki::BootstrapNavbarDropdownMenuItem set __default_superclass ::xotcl::Object