Package Exports
- @ppci/custom-select
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ppci/custom-select) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Dropdown
A dropdown
Table of contents
Installation
NPM
npm i @ppci/custom-selectUsage
Javascript
import '@ppci/custom-select'Browser
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/custom-select/builds/index.min.js" />
<custom-select
name="String"
label="String"
value="String"
placeholder="String"
options=${Array}
disabled
@change=${Function}
></custom-button>Theme | Styling
custom-select {
/* todo */
}Properties
| 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 |
Events
| Name | Description | Detail / Payload |
| @change | Select field is changed | ```{ ..., detail: { name: String, value: String } }``` |
Changelog
1.0.2 | 1.0.3
- Bundle and minify related fixes
1.0.1
- Fix event handling
1.0.0 ( Major )
- Initial version of the custom select.