Class humhub\modules\ui\menu\DropdownDivider

Inheritancehumhub\modules\ui\menu\DropdownDivider » humhub\modules\ui\menu\MenuEntry » yii\base\BaseObject
Available since version1.4

Class DropdownDivider

Used for rendering divider within a DropdownMenu.

Usage:

$dropdown->addEntry(new DropdownDivider(['sortOrder' => 100]);

See also humhub\modules\ui\menu\widgets\Menu.

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$htmlOptions array Additional html options for the link HTML tag humhub\modules\ui\menu\MenuEntry
$id string Menu entry identifier (optional) humhub\modules\ui\menu\MenuEntry
$isActive boolean Mark this entry as active humhub\modules\ui\menu\MenuEntry
$isVisible boolean humhub\modules\ui\menu\MenuEntry
$sortOrder integer The sort order humhub\modules\ui\menu\MenuEntry

Public Methods

Hide inherited methods

MethodDescriptionDefined By
compare() Compares this entry with the given entry humhub\modules\ui\menu\MenuEntry
getHtmlOptions() Returns the Html options for the menu entry link tag. humhub\modules\ui\menu\MenuEntry
getId() humhub\modules\ui\menu\MenuEntry
getIsActive() humhub\modules\ui\menu\MenuEntry
getSortOrder() humhub\modules\ui\menu\MenuEntry
isActiveState() humhub\modules\ui\menu\MenuEntry
isVisible() humhub\modules\ui\menu\MenuEntry
render() Public accessible render function responsible for rendering this entry. humhub\modules\ui\menu\MenuEntry
renderEntry() Renders the entry html, this template function should respect $htmlOptions array by calling getHtmlOptions() and passing the $extraHtmlOptions array as for example: humhub\modules\ui\menu\DropdownDivider
setHtmlOptions() humhub\modules\ui\menu\MenuEntry
setId() humhub\modules\ui\menu\MenuEntry
setIsActive() humhub\modules\ui\menu\MenuEntry
setIsActiveState() Activates this MenuEntry in case the given moduleId, controllerId and actionId matches the current request. humhub\modules\ui\menu\MenuEntry
setIsVisible() humhub\modules\ui\menu\MenuEntry
setSortOrder() humhub\modules\ui\menu\MenuEntry

Method Details

renderEntry() public method

Renders the entry html, this template function should respect $htmlOptions array by calling getHtmlOptions() and passing the $extraHtmlOptions array as for example:


return Html::a($label, $url, $this->getHtmlOptions($extraHtmlOptions));

public string renderEntry ( $extraHtmlOptions = [] )
$extraHtmlOptions array
return string

The Html link