@backsystem/select
v1.0.21
Published
Make your select easy to use and more user-friendly
Downloads
29
Maintainers
Readme
Select
Getting started
Install the package using your package manager
npm install @backsystem/select
# or
yarn add @backsystem/select
Then import it in your script
import { Basic, Fetch } from '@backsystem/select'
And apply it to your selects
// Basic: Without API
document.querySelectorAll('select:not([data-url])').forEach(select => {
Basic.get(select)
})
// Fetch: With API
document.querySelectorAll('select[data-url]').forEach(select => {
Fetch.get(select)
})