%3 ::xowiki::BootstrapNavbarDropdownMenu ::xowiki::BootstrapNavbarDropdownMenu render ::xowiki::Menu ::xowiki::Menu render ::xowiki::BootstrapNavbarDropdownMenu->::xowiki::Menu ::xowiki::YUIMenuItemList ::xowiki::YUIMenuItemList ::xowiki::YUIMenuItemList->::xowiki::Menu ::xowiki::BootstrapNavbar ::xowiki::BootstrapNavbar render ::xowiki::BootstrapNavbar->::xowiki::Menu ::xowiki::YUIMenu ::xowiki::YUIMenu render ::xowiki::YUIMenu->::xowiki::Menu ::xowiki::MenuComponent ::xowiki::MenuComponent ::xowiki::Menu->::xowiki::MenuComponent ::xo::tdom::Object ::xo::tdom::Object ::xowiki::MenuComponent->::xo::tdom::Object

Class ::xowiki::BootstrapNavbar

::xowiki::BootstrapNavbar[i] create ... \
           [ -autorender (default "false") ] \
           [ -containerClass (default "container-fluid px-0") ] \
           [ -menubar menubar ] \
           [ -navbarClass (default "navbar navbar-expand-lg navbar-default navbar-static-top mx-2 p-0") ]

Defined in

Class Relations

  • class: ::xo::tdom::Class[i]
  • superclass: ::xowiki::Menu[i]
::xo::tdom::Class create ::xowiki::BootstrapNavbar \
     -superclass ::xowiki::Menu

Methods (to be applied on instances)

  • render (scripted, public)

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

    http://getbootstrap.com/components/#navbar

    Testcases:
    create_folder_with_page, create_workflow_with_instance
    html::nav  -class [template::CSS classes ${:navbarClass}]  -role "navigation"  -style "background-color: #f8f9fa;" {
          #
          # Render the pull down menus
          #
          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
                }
              }
            }
          }
        }

Variables

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