Dropdown select box for bootstrap 5
npm install @jarstone/dselectDropdown select box for bootstrap 5
- Placeholder
- Multiple
- Search
- Creatable
- Clearable
- Sizing
- Validation
Install dselect with npm
``bash`
npm install @jarstone/dselect
Install from cdn
`html`Usage/Examples
`html``javascript`
dselect(document.querySelector('#dselect-example'))Options
`javascript`
const config = {
search: false, // Toggle search feature. Default: false
creatable: false, // Creatable selection. Default: false
clearable: false, // Clearable selection. Default: false
maxHeight: '360px', // Max height for showing scrollbar. Default: 360px
size: '', // Can be "sm" or "lg". Default ''
}
dselect(document.querySelector('#dselect-example'), config)
options can also be set in "data-dselect-*" attribute
`html``