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: ActionMenuItemGroupViewHelper.php (GitHub).

Arguments

The following arguments are available for <f:be.menus.actionMenuItemGroup>:

Name Type Default
mixed
mixed
mixed
string
string
additionalAttributes
Type
mixed

Additional tag attributes. They will be added directly to the resulting HTML tag.

data
Type
mixed

Additional data-* attributes. They will each be added with a "data-" prefix.

aria
Type
mixed

Additional aria-* attributes. They will each be added with a "aria-" prefix.

defaultController
Type
string

The default controller to be used

label
Type
string

The label of the option group