.. include:: /Includes.rst.txt
.. _typo3-fluid-be-menus-actionmenuitem:
=======================
be.menus.actionMenuItem
=======================
ViewHelper which returns an option tag.
This ViewHelper only works in conjunction with :php:`\TYPO3\CMS\Fluid\ViewHelpers\Be\Menus\ActionMenuViewHelper`.
.. note::
This ViewHelper is experimental!
Examples
========
Simple::
Selectbox with the options "Overview", "Create new Blog" and "List Posts".
Localized::
Localized selectbox.
Arguments
=========
.. _be.menus.actionmenuitem_additionalattributes:
additionalAttributes
--------------------
:aspect:`DataType`
mixed
:aspect:`Required`
false
:aspect:`Description`
Additional tag attributes. They will be added directly to the resulting HTML tag.
.. _be.menus.actionmenuitem_data:
data
----
:aspect:`DataType`
mixed
:aspect:`Required`
false
:aspect:`Description`
Additional data-* attributes. They will each be added with a "data-" prefix.
.. _be.menus.actionmenuitem_label:
label
-----
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Label of the option tag
.. _be.menus.actionmenuitem_controller:
controller
----------
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Controller to be associated with this ActionMenuItem
.. _be.menus.actionmenuitem_action:
action
------
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
The action to be associated with this ActionMenuItem
.. _be.menus.actionmenuitem_arguments:
arguments
---------
:aspect:`DataType`
mixed
:aspect:`Default`
array ()
:aspect:`Required`
false
:aspect:`Description`
Additional controller arguments to be passed to the action when this ActionMenuItem is selected