mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-07 16:32:32 +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',
|
flippedState: 'is-flipped',
|
||||||
loadingState: 'is-loading',
|
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: () => {},
|
callbackOnInit: () => {},
|
||||||
callbackOnAddItem: (id, value, passedInput) => {},
|
callbackOnAddItem: (id, value, passedInput) => {},
|
||||||
callbackOnRemoveItem: (id, value, passedInput) => {},
|
callbackOnRemoveItem: (id, value, passedInput) => {},
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<h1>Choices</h1>
|
<h1>Choices</h1>
|
||||||
<p>A lightweight, configurable select box/text input plugin. Similar to Select2 and Selectize but without the jQuery dependency.</p>
|
<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>
|
<h2>Text inputs</h2>
|
||||||
<label for="choices-1">Limited to 5</label>
|
<label for="choices-1">Limited to 5</label>
|
||||||
<input id="choices-1" type="text" value="preset-1,preset-2" placeholder="Enter something">
|
<input id="choices-1" type="text" value="preset-1,preset-2" placeholder="Enter something">
|
||||||
|
|
Loading…
Reference in a new issue