Housekeeping

This commit is contained in:
Josh Johnson 2016-07-30 16:13:01 +01:00
parent aaf58a2108
commit c0249ffc13
2 changed files with 1 additions and 8 deletions

View file

@ -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) => {},

View file

@ -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">