2022-03-13 19:32:32 +01:00
|
|
|
const Choices = require('choices.js')
|
|
|
|
|
2023-10-27 17:02:15 +02:00
|
|
|
module.exports = () => {
|
|
|
|
document.querySelectorAll('*[data-jschoice]').forEach((item) => {
|
|
|
|
return new Choices(item, {
|
|
|
|
searchFields: ['label'],
|
|
|
|
})
|
2022-03-13 19:32:32 +01:00
|
|
|
})
|
|
|
|
}
|