1.0.4 • Published 6 years ago
@singleware/ui-menu v1.0.4
UI-Menu
Custom HTML element used to wrap most essential actions for a menu component.
Properties
| Name | Description |
|---|---|
| value | Get and set the current selected option by its value |
| disabled | Get and set the disabled state |
| selectable | Get and set the selectable state |
| orientation | Get and set the element orientation. Use column, row |
Methods
| Name | Description |
|---|---|
| addGroup | Add a group into the menu |
| addOption | Add an option into the menu |
| removeOption | Remove options from the menu |
| clearOptions | Remove all options from the menu |
Install
Using npm:
npm i @singleware/ui-menu