mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-17 13:06:34 +02:00
Housekeeping
This commit is contained in:
parent
aaf58a2108
commit
c0249ffc13
|
@ -67,13 +67,6 @@ A lightweight, configurable select box/text input plugin. Similar to Select2 and
|
|||
flippedState: 'is-flipped',
|
||||
loadingState: 'is-loading',
|
||||
},
|
||||
sortFunction: (a, b) => {
|
||||
const labelA = (a.label || a.value).toLowerCase();
|
||||
const labelB = (b.label || b.value).toLowerCase();
|
||||
if (labelA < labelB) return -1;
|
||||
if (labelA > labelB) return 1;
|
||||
return 0;
|
||||
},
|
||||
callbackOnInit: () => {},
|
||||
callbackOnAddItem: (id, value, passedInput) => {},
|
||||
callbackOnRemoveItem: (id, value, passedInput) => {},
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<div class="section">
|
||||
<h1>Choices</h1>
|
||||
<p>A lightweight, configurable select box/text input plugin. Similar to Select2 and Selectize but without the jQuery dependency.</p>
|
||||
<p>For all config options, visit <a href="https://github.com/jshjohnson/Choices">https://github.com/jshjohnson/Choices</a></p>
|
||||
<p>For all config options, visit the <a href="https://github.com/jshjohnson/Choices">GitHub repo</a>.</p>
|
||||
<h2>Text inputs</h2>
|
||||
<label for="choices-1">Limited to 5</label>
|
||||
<input id="choices-1" type="text" value="preset-1,preset-2" placeholder="Enter something">
|
||||
|
|
Loading…
Reference in a new issue