Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/singleware/ui-menu
UI menu package.
https://github.com/singleware/ui-menu
browser custom-element javascript jsx menu singleware typescript
Last synced: 4 days ago
JSON representation
UI menu package.
- Host: GitHub
- URL: https://github.com/singleware/ui-menu
- Owner: Singleware
- License: mit
- Created: 2019-07-13T21:15:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T04:12:47.000Z (over 1 year ago)
- Last Synced: 2024-03-14T16:23:42.596Z (8 months ago)
- Topics: browser, custom-element, javascript, jsx, menu, singleware, typescript
- Language: JavaScript
- Homepage:
- Size: 85 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```sh
npm i @singleware/ui-menu
```## License
[MIT © Silas B. Domingos](https://balmante.eti.br)