Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)