src/Ease/TWB/Navbar.php
public function &addDropDownMenu($label, $items, $pull = 'left')
    {
        Part::twBootstrapize();
        \Ease\Shared::webPage()->addJavaScript('$(\'.dropdown-toggle\').dropdown();',
            null, true);
        $dropDown     = new \Ease\Html\LiTag(null,
            ['class' => 'dropdown', 'id' => $label]);
        $dropDown->addItem(new \Ease\Html\ATag('#',
                $label.'<b class="caret"></b>',
                ['class' => 'dropdown-toggle', 'data-toggle' => 'dropdown']));
        $dropDownMenu = $dropDown->addItem(new \Ease\Html\UlTag(null,
                ['class' => 'dropdown-menu']));
        if (is_array($items)) {
            foreach ($items as $target => $label) {
                if (is_array($label)) {
                    //Submenu
                    $dropDownMenu->addItem($this->addDropDownSubmenu($target,
                            $label));
                } else {
                    //Item
                    if (!$target) {
                        $dropDownMenu->addItem(new \Ease\Html\LiTag(null,
                                ['class' => 'divider']));
                    } else {
                        $dropDownMenu->addItemSmart(new \Ease\Html\ATag($target,
                                $label));
                    }
                }
            }
        } else {
            $dropDownMenu->addItem($items);
        }
        if ($pull == 'left') {
            $this->nav->addItemSmart($dropDown);
        } else {
            $this->navRight->addItemSmart($dropDown);
        }

        return $dropDown;
    }
public function &addDropDownMenu($label, $items, $pull = 'left')
    {
        Part::twBootstrapize();
        \Ease\Shared::webPage()->addJavaScript('$(\'.dropdown-toggle\').dropdown();',
            null, true);
        $dropDown     = new \Ease\Html\LiTag(null,
            ['class' => 'dropdown', 'id' => $label]);
        $dropDown->addItem(new \Ease\Html\ATag('#',
                $label.'<b class="caret"></b>',
                ['class' => 'dropdown-toggle', 'data-toggle' => 'dropdown']));
        $dropDownMenu = $dropDown->addItem(new \Ease\Html\UlTag(null,
                ['class' => 'dropdown-menu']));
        if (is_array($items)) {
            foreach ($items as $target => $label) {
                if (is_array($label)) {
                    //Submenu
                    $dropDownMenu->addItem($this->addDropDownSubmenu($target,
                            $label));
                } else {
                    //Item
                    if (!$target) {
                        $dropDownMenu->addItem(new \Ease\Html\LiTag(null,
                                ['class' => 'divider']));
                    } else {
                        $dropDownMenu->addItemSmart(new \Ease\Html\ATag($target,
                                $label));
                    }
                }
            }
        } else {
            $dropDownMenu->addItem($items);
        }
        if ($pull == 'left') {
            $this->nav->addItemSmart($dropDown);
        } else {
            $this->navRight->addItemSmart($dropDown);
        }

        return $dropDown;
    }
Vloží rozbalovací menu.

@param string       $label popisek menu
@param array|string $items položky menu
@param string       $pull  směr zarovnání

@return \Ease\Html\ULTag