@singleware/ui-menu

Singleware UI menu package.

Usage no npm install needed!

<script type="module">
  import singlewareUiMenu from 'https://cdn.skypack.dev/@singleware/ui-menu';
</script>

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:

npm i @singleware/ui-menu

License

MIT © Silas B. Domingos