Choices
Choices copied to clipboard
A vanilla JS customisable select box/text input plugin ⚡️
**Ampersand is HTML-escaped without need ( & -> & amp;)** **To Reproduce** Create a single select like: ``` K&K ``` Check the rendered list. It displays as K& amp;K Remark:...
## Description 1. updated node version, because it was ancient 2. added the option to source the choices from choices like div element This should make it easy to "solve"...
I have this html: ``` Ketchup Relish Mayonnaise ``` And i do this: ``` const element = document.querySelector('.js-choice'); const choices = new Choices(element, { allowHTML: true }); ``` But the...
I recently implemented search to our single selects and came a across a bug, that occurs if you open the drop down by pressing arrow down. This leads to a...
## Description In some cases, we want to be able to pass multiple class names like so 'list first second'. However, this is making an error because classList.add doesn't support...
I'm generating all choices instances on elements that have a 'data-choices' on application bootstrap. Then, I have to update choices set from API. ```js const element = document.getElementById('id_city'); const choices...
Loading items from an API that provides paginated items. Select2, request the next page when the scroll hits the end (like infinite scroll).
**Is your feature request related to a problem? Please describe.** I want to build a tags feature but I only have a limited number of choices, I want to allow...
Hi, Choice.js is great library, but for some one like me (and many) if we dont see more samples, or related documentation its hard to use the library/component. Even for...
I having trouble understanding pretty basic thing as I think - how to add or remove options to/from select? In one issue I found `triggerEvent(this.passedElement, 'addItem', params)` line for addition,...