Constructor
new MenuBar(textopt)
Constructor of MenuBar UI component.
| Name | Type | Attributes | Description |
|---|---|---|---|
text | string | <optional> | Text displayed in the menu |
Classes
Methods
addChild(component, …indexopt) → {this}
Adds a child menu component to this menu bar. Overrides UIComponent.addChild() to validate components being added.
| Name | Type | Attributes | Description |
|---|---|---|---|
component | Object | UI Component that can be a child of this component. | |
index | any | <optional> <repeatable> | Argument to pass index at which to insert the child. By default component is added to the end. |
Returns an instance of this component.
- Type:
- this