Selectbox
npm install @ppci/custom-selectjavascript
npm i @ppci/custom-select// Polyfill: https://lit-element.polymer-project.org/guide/use#polyfills
npm i --save-dev @webcomponents/webcomponentsjs
`$3
#### Javascript
`javascript
import '@ppci/custom-select'
`#### Browser
`html
name=${String}
label=${String}
value=${String}
placeholder=${String}
.options=${Array}
@change=${Function}
?disabled=${Boolean}
>
`$3
Property
Type
Description
Possible Values
name
string
Name of the input field. Which could be used in a form as field identifier.
label
string
Label which is positioned above the dropdown
value
string
Active value of the dropdown
placeholder
string
Placeholder text
options
Array
Dropdown options
`javascript
[
{
label: 'Solar panel',
value: '1'
}
]
`
disabled
boolean
Select field disabled state
true/false
$3
Name
Description
Payload
@change
Select field is changed
`{ ..., detail: { name: String, value: String } }``