Element html.menu.Button

Substitution Groups:
html.menu.IMenuItem

Allows to define one or several buttons in a menu.
If the IterateOn expression is set, then several buttons will be rendered (by iterating on the returned collection).


Attributes
optional   String CssClass The CSS class to apply. Default: 'osuit-Button'.
optional   String Target The target window. If specified, clicking this button will open a new window.
optional   String IteratorVar The name of the iterator contextual bean.
This bean is available at render-time only.
Default: $item.

Named Children Elements
optional   binding.Expression IterateOn Vector of item objects (any).
When set, it allows to render several multiple buttons (by iterating on the returned vector).
mandatory   binding.Expression Title The button title.
Supported contextual beans: $item (if expression 'IterateOn' is set).
optional   binding.Expression Tooltip The button tooltip text.
Supported contextual beans: $item (if expression 'IterateOn' is set).
optional   binding.Expression Icon The button's icon.
The path returned by this expression is relative to the war root directory (ex: 'resources/images/icon.png').
Supported contextual beans: $item (if expression 'IterateOn' is set).
mandatory   action.IAction OnClick Action to trigger when the button is clicked.
Supported contextual beans: $item (if expression 'IterateOn' is set).
optional   binding.Expression Disabled Determines whether the button is enabled.
Supported contextual beans: $item (if expression 'IterateOn' is set).
Default: true.
optional   binding.Expression Visible Determines whether this button is displayed.
Supported contextual beans: $item (if expression 'IterateOn' is set).
Default: true