%3 ::xowiki::BootstrapNavbarDropdownMenu ::xowiki::BootstrapNavbarDropdownMenu render ::xowiki::Menu ::xowiki::Menu render ::xowiki::BootstrapNavbarDropdownMenu->::xowiki::Menu ::xowiki::YUIMenuItemList ::xowiki::YUIMenuItemList render ::xowiki::YUIMenuItemList->::xowiki::Menu ::xowiki::BootstrapNavbar ::xowiki::BootstrapNavbar init render ::xowiki::BootstrapNavbar->::xowiki::Menu ::xowiki::YUIMenu ::xowiki::YUIMenu init render split_menu_groups ::xowiki::YUIMenu->::xowiki::Menu ::xowiki::MenuComponent ::xowiki::MenuComponent html_id js_name ::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)

  • autorender (setter)

  • containerClass (setter)

  • init (scripted)

    ::xo::Page requireJS urn:ad:js:jquery
    ::template::CSS require_toolkit -css -js
    next
  • menubar (setter)

  • navbarClass (setter)

  • 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
                }
              }
            }
          }
        }