MenuButton component
This section provides a summary of MenuButton, its attributes, and its class.
The MenuButton component can be integrated with the ButtonBar component and supports the following:
-
Integrated with the existing ButtonBar component
-
Configure menu title, height, button text, menu item options, click event.
The MenuButton component consists of:
-
MenuButton.component : The Visualforce UI component.
-
MenuButtonOptions.class : The Apex class that stores the configuration options specified by the developer and used by the controller to render the component.
-
MenuButtonOptions.MenuItem.class : The Apex class that constructs the menu item options for the component.
MenuButton Component Attributes
The MenuButton component accepts the following attributes.
|
Attribute |
Type |
Required? |
Description |
|---|---|---|---|
|
id |
String |
Required |
An identifier that allows the component to be referenced by other components in the page. |
|
options |
zqu.MenuButtonOptions |
Required |
The configuration options for the MenuButton component. |
MenuButtonOptions Class
The MenuButton component has the MenuButtonOptions class that provides the following property options.
|
Property |
Type |
Required? |
Description |
|---|---|---|---|
|
buttonLabel |
String |
Optional |
The displayed label of the button in the component. |
|
menuHeight |
String |
Optional |
The height of the menu button. |
|
menuId |
String |
Required |
The Id of the menu button. |
|
menuItemLayoutBlock |
Boolean |
Optional |
If set this to true, the menu item options won't be collapsible. |
|
menuItemOnClickAction |
String |
Optional |
The JavaScript method which will be triggered when click each of the menu items. |
|
menuItems |
List <zqu.MenuButtonOptions.MenuItem> |
Required |
The menu item options displayed in the menu button component. |
|
menuItemSectionTitle |
String |
Optional |
The title of all the menu item options. |
|
menuLabel |
String |
Optional |
The displayed label of the menu button. |
|
menuName |
String |
Optional |
The API name of the menu button. |