widgets\Menu $lastItemCssClass

$lastItemCssClass public property The CSS class that will be assigned to the last item in the main menu or each submenu. Defaults to null, meaning no such CSS class will be assigned. public string $lastItemCssClass = null

widgets\Menu $labelTemplate

$labelTemplate public property The template used to render the body of a menu which is NOT a link. In this template, the token {label} will be replaced with the label of the menu item. This property will be overridden by the template option set in individual menu items via $items. public string $labelTemplate = '{label}'

widgets\Menu $items

$items public property List of menu items. Each menu item should be an array of the following structure: label: string, optional, specifies the menu item label. When $encodeLabels is true, the label will be HTML-encoded. If the label is not specified, an empty string will be used. encode: boolean, optional, whether this item`s label should be HTML-encoded. This param will override global $encodeLabels param. url: string or array, optional, specifies the URL of the menu item. It will be proc

widgets\Menu $itemOptions

$itemOptions public property List of HTML attributes shared by all menu $items. If any individual menu item specifies its options, it will be merged with this property before being used to generate the HTML attributes for the menu item tag. The following special options are recognized: tag: string, defaults to "li", the tag name of the item container tags. Set to false to disable container tag. See also yii\helpers\Html::tag(). See also yii\helpers\Html::renderTagAttributes() for details on

widgets\Menu $hideEmptyItems

$hideEmptyItems public property Whether to hide empty menu items. An empty menu item is one whose url option is not set and which has no visible child menu items. public boolean $hideEmptyItems = true

widgets\Menu $firstItemCssClass

$firstItemCssClass public property The CSS class that will be assigned to the first item in the main menu or each submenu. Defaults to null, meaning no such CSS class will be assigned. public string $firstItemCssClass = null

widgets\Menu $encodeLabels

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

widgets\Menu $activeCssClass

$activeCssClass public property The CSS class to be appended to the active menu item. public string $activeCssClass = 'active'

widgets\Menu $activateParents

$activateParents public property Whether to activate parent menu items when one of the corresponding child menu items is active. The activated parent menu items will also have its CSS classes appended with $activeCssClass. public boolean $activateParents = false

widgets\Menu $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