Be.menus.actionMenuItemGroup ViewHelper <f:be.menus.actionMenuItemGroup>

ViewHelper which groups options of an option tag.

Example

<f:be.menus.actionMenu>
    <f:be.menus.actionMenuItem label="Default: Welcome" controller="Default" action="index" />
    <f:be.menus.actionMenuItem label="Community: get in touch" controller="Community" action="index" />

    <f:be.menus.actionMenuItemGroup label="Information">
        <f:be.menus.actionMenuItem label="PHP Information" controller="Information" action="listPhpInfo" />
        <f:be.menus.actionMenuItem label="Documentation" controller="Information" action="documentation" />
        <f:be.menus.actionMenuItem label="Hooks" controller="Information" action="hooks" />
        <f:be.menus.actionMenuItem label="Signals" controller="Information" action="signals" />
        <f:be.menus.actionMenuItem label="XClasses" controller="Information" action="xclass" />
    </f:be.menus.actionMenuItemGroup>
</f:be.menus.actionMenu>
Copied!

Source code

Go to the source code of this ViewHelper: Be\Menus\ActionMenuItemGroupViewHelper.php (GitHub).

Arguments

The following arguments are available for the be.menus.actionMenuItemGroup ViewHelper:

additionalAttributes
Type
array
Additional tag attributes. They will be added directly to the resulting HTML tag.
aria
Type
array
Additional aria-* attributes. They will each be added with a "aria-" prefix.
data
Type
array
Additional data-* attributes. They will each be added with a "data-" prefix.
defaultController
Type
string
Unused
label
Type
string
Default
''
The label of the option group