This component retrieves sub-menus dynamically.
It first retrieves a vector data (through the Iterable binding), and then retrieves sub-menu info (text, action, tooltip, items, ...) by iterating on the items.
Sub-menu elements are accessible as a contextual bean (default: '$submenu').
Attributes | ||
optional
String
|
CssClass |
The CSS class to apply. Default: 'osuit-Button'. |
optional
String
|
Target |
The target window. If specified, clicking this item will open a new window. |
optional
String
|
IteratorVar |
The name of the iterator contextual bean. This bean is available at render-time only. Default: $submenu. |
Named Children Elements | ||
optional
binding.Expression |
IterateOn |
Vector of item objects (any). Allows to render several sub-menus. |
mandatory
binding.Expression |
Title |
The submenu title. Supported contextual beans: $submenu (if expression 'IterateOn' is set). |
optional
binding.Expression |
Tooltip |
Tooltip text. Supported contextual beans: $submenu (if expression 'IterateOn' is set). |
optional
binding.Expression |
Icon |
The submenu's icon. The path returned by this expression is relative to the war root directory (ex: 'resources/images/icon.png'). Supported contextual beans: $submenu (if expression 'IterateOn' is set). |
optional
action.IAction |
OnClick |
Action to trigger when the submenu is clicked. Supported contextual beans: $submenu (if expression 'IterateOn' is set). |
optional
binding.Expression |
Disabled |
Determines whether the submenu is enabled. Supported contextual beans: $submenu (if expression 'IterateOn' is set). Default: true |
optional
binding.Expression |
Visible |
Determines whether the sub menu is visible. Supported contextual beans: $submenu (if expression 'IterateOn' is set). Default: true |
optional
binding.Expression |
ShowSubMenu |
Determines whether this submenu show its children items. Supported contextual beans: $submenu (if expression 'IterateOn' is set). Default: true |
1 - unbounded
html.menu.IMenuItem[] |
Items |
The submenu items. Supported contextual beans: $submenu (if expression 'IterateOn' is set). |