xowiki::BootstrapNavbarDropdownMenu instproc render (public)

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

Defined in /var/www/openacs.org/packages/xowiki/tcl/bootstrap-procs.tcl

doku

Testcases:
create_folder_with_page, create_workflow_with_instance
Source code:
# TODO: Add support for group-headers
# get group header
set group " "

html::li -class "nav-item dropdown" {
  set class "nav-link dropdown-toggle"
  if {${:brand}} {
    lappend class "navbar-brand"
  }
  set data_attribute [expr {[::template::CSS toolkit] eq "bootstrap5" ? "data-bs" : "data"}]
  html::a -href "\#" -class $class -$data_attribute-toggle "dropdown" {
    html::t ${:text}
  }
  html::ul -class "dropdown-menu" {
    foreach dropdownmenuitem [:children] {
      if {[$dropdownmenuitem set group] ne ""
          && [$dropdownmenuitem set group] ne $group
        } {
        if {$group ne " "} {
          html::li -class "divider dropdown-divider"
        }
        set group [$dropdownmenuitem set group]
      }
      $dropdownmenuitem render
    }
  }
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: