bootstrap\Nav isChildActive()

isChildActive() protected method Check to see if a child item is active optionally activating the parent. protected array isChildActive ( $items, &$active )$items array @see items $active boolean Should the parent be active too return array @see items

bootstrap\Nav init()

init() public method Initializes the widget. public void init ( )

bootstrap\Nav $route

$route public property The route used to determine if a menu item is active or not. If not set, it will use the route of the current request. See also: $params isItemActive() public string $route = null

bootstrap\Nav $params

$params public property The parameters used to determine if a menu item is active or not. If not set, it will use $_GET. See also: $route isItemActive() public array $params = null

bootstrap\Nav $items

$items public property List of items in the nav widget. Each array element represents a single menu item which can be either a string or an array with the following structure: label: string, required, the nav item label. url: optional, the item's URL. Defaults to "#". visible: boolean, optional, whether this menu item is visible. Defaults to true. linkOptions: array, optional, the HTML attributes of the item's link. options: array, optional, the HTML attributes of the item container (LI). a

bootstrap\Nav $encodeLabels

$encodeLabels public property Whether the nav items labels should be HTML-encoded. public boolean $encodeLabels = true

bootstrap\Nav $dropdownClass

$dropdownClass public property (available since version 2.0.7) Name of a class to use for rendering dropdowns withing this widget. Defaults to yii\bootstrap\Dropdown. public string $dropdownClass = 'yii\bootstrap\Dropdown'

bootstrap\Nav $dropDownCaret

$dropDownCaret public property This property allows you to customize the HTML which is used to generate the drop down caret symbol, which is displayed next to the button text to indicate the drop down functionality. Defaults to null which means <span class="caret"></span> will be used. To disable the caret, set this property to be an empty string. public string $dropDownCaret = null

bootstrap\Nav $activateParents

$activateParents public property Whether to activate parent menu items when one of the corresponding child menu items is active. public boolean $activateParents = false

bootstrap\Nav $activateItems

$activateItems public property Whether to automatically activate items according to whether their route setting matches the currently requested route. See also isItemActive(). public boolean $activateItems = true