ActionMenuItemGroupViewHelper extends ActionMenuViewHelper
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>
Table of Contents
Properties
- $childNodes : array<string|int, mixed>
- An array of \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode
- $tagName : string
Methods
- compile() : mixed
- initializeArguments() : mixed
- Initialize arguments.
- render() : string
- Render FunctionMenu
- loadRequireJsModule() : string
- Renders `<script src="JavaScriptHandler.js">...</script>` for loading corresponding module. Using `JavaScriptRenderer` makes this independent from `PageRenderer` and its current application state.
Properties
$childNodes
An array of \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode
protected
array<string|int, mixed>
$childNodes
= []
$tagName
protected
string
$tagName
= 'optgroup'
Methods
compile()
public
compile(string $argumentsName, string $closureName, string &$initializationPhpCode, ViewHelperNode $node, TemplateCompiler $compiler) : mixed
Parameters
- $argumentsName : string
- $closureName : string
- $initializationPhpCode : string
- $node : ViewHelperNode
- $compiler : TemplateCompiler
initializeArguments()
Initialize arguments.
public
initializeArguments() : mixed
Tags
render()
Render FunctionMenu
public
render() : string
Return values
stringloadRequireJsModule()
Renders `<script src="JavaScriptHandler.js">...</script>` for loading corresponding module. Using `JavaScriptRenderer` makes this independent from `PageRenderer` and its current application state.
protected
loadRequireJsModule(string $name) : string
Parameters
- $name : string