Свойство | Тип | Описание | |
---|---|---|---|
$cssClass | A potential CSS class of the nav wrapper container. |
Метод | Описание | |
---|---|---|
__construct ( string $cssClass = '', boolean $useCssPrefix = true ) | ||
addDropdown ( DropdownModule $dropdown, string $key = '', string $cssClass = '', array | integer $sort = [] ) : NavModule | Add a dropdown menu to the items array. | |
addDropdownIf ( boolean | string | array $isAllowed = true, DropdownModule $dropdown, string $key = '', string $cssClass = '', array | integer $sort = [] ) : NavModule | Add a dropdown to the items array if it satisfies the $isAllowed condition. | |
toString ( ) |
public __construct ( string $cssClass = '', boolean $useCssPrefix = true ) | ||
$cssClass | string | A potential CSS class of the dropdown menu wrapper container. |
$useCssPrefix | boolean | Whether to use CSS prefixes on the nav items. |
public addDropdown ( DropdownModule $dropdown, string $key = '', string $cssClass = '', array | integer $sort = [] ) : NavModule | ||
$dropdown | DropdownModule | The dropdown menu to add. |
$key | string | The item's key (for sorting and CSS targeting). |
$cssClass | string | The dropdown wrapper's CSS class. |
$sort | array | integer | Either a numeric sort position or and array in the style: array('before|after', 'key'). |
Результат | NavModule | $this The calling object. |
public addDropdownIf ( boolean | string | array $isAllowed = true, DropdownModule $dropdown, string $key = '', string $cssClass = '', array | integer $sort = [] ) : NavModule | ||
$isAllowed | boolean | string | array | Either a boolean to indicate whether to actually add the item or a permission string or array of permission strings (full match) to check. |
$dropdown | DropdownModule | The dropdown menu to add. |
$key | string | The item's key (for sorting and CSS targeting). |
$cssClass | string | The dropdown wrapper's CSS class. |
$sort | array | integer | Either a numeric sort position or and array in the style: array('before|after', 'key'). |
Результат | NavModule | $this The calling object. |