/** * * @param mixed $content * @param mixed $options * @return \PhpBootstrap\Bootstrap\Dropdown */ public function addItem($content, $options = null) { if ($options == 'HEADER') { $this->ul->addItem($content, ['role' => 'presentation', 'class' => 'dropdown-header']); } elseif ($options == 'DIVIDER') { $this->ul->addItem('', ['role' => 'presentation', 'class' => 'divider']); } else { $link = new Link($content, $options); $link->addAttribs(['role' => 'menuitem', 'tabindex' => '-1']); $this->ul->addItem($link->render(), ['role' => 'presentation']); } return $this; }