0.0.3 • Published 6 years ago

multiselectdropdown-webcomponent v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

multi_select_dropdown_webcomponent

Multi selection drop down web-component developed in Stencil.js.

Usage

<script src='https://unpkg.com/multiselectdropdown-webcomponent@latest/dist/mycomponent.js'></script>

In javascript

Under body tag

<as-ms-ddl></as-ms-ddl> <script> let component = document.querySelector('as-ms-ddl'); component.data = [{ label: "a", value: "1" }, { label: "b", value: "2" }, { label: "c", value: "3" }, { label: "d", value: "4" }, { label: "e", value: "5" }]; component.addEventListener('selectedValues', event => { console.log(event.detail); }); </script>

Properties

PropertyAttributeDescriptionTypeDefault
data[{label:string,value:string}]array of IdropDownDataIdropDownData[]undefined
in the form of label, value
options{selected_value_appear:string}count OR valueIdropDownOptioncount

Events

EventDescriptionType
selectedValuesreturn array repective ofArray<IdropDownData>
selected_value_appear option passed


Built with StencilJS