We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
So here is how i create my choices...
keywordChoices = new Choices(document.getElementById('keywords'), { delimiter: ',', editItems: true, maxItemCount: -1, duplicateItemsAllowed: false, removeItemButton: true, shouldSortItems: true, sorter: function(a, b) { return a.label.toLowerCase().localeCompare(b.label.toLowerCase()); }, allowHTML: true, placeholderValue: 'Type a keyword or phrase.', items: keywordsArray });
But once i set items how do i modify existing ones?
Currently i am forced to do the following where i delete the key then i read it with a modified value/label:
keywordChoices.removeActiveItemsByValue(key); keywordChoices.setValue([{value: key, label: key}]);
Seems horribly inefficient. Surely, there has to be a way to udpate an existing value more easily.
The text was updated successfully, but these errors were encountered:
This is for a <input type="text> field correct?
<input type="text>
The library doesn't currently have a way to update the existing choices/options/items
Sorry, something went wrong.
This is for a <input type="text> field correct? The library doesn't currently have a way to update the existing choices/options/items
Yup its for that field type. And thanks for the clarification. Ok, just had to check. Will write custom code to fix my issue now.
Xon
No branches or pull requests
So here is how i create my choices...
But once i set items how do i modify existing ones?
Currently i am forced to do the following where i delete the key then i read it with a modified value/label:
Seems horribly inefficient. Surely, there has to be a way to udpate an existing value more easily.
The text was updated successfully, but these errors were encountered: