Lines Matching refs:choices
414 * results array of objects that will be used as choices
477 * an array of objects that will be used as choices. These objects must contain at least an 'id' key. The 'text'
479 * value of 'text' which will be used to match choices. Alternatively, text can be a function(item) that can extract
597 * @param selection currently selected choices
987 // this is needed because inside val() we construct choices from options and there id is hardcoded
1481 var choices = this.findHighlightableChoices(),
1484 while (index > -1 && index < choices.length) {
1486 var choice = $(choices[index]);
1496 var choices = this.findHighlightableChoices(),
1501 return indexOf(choices.filter(".select2-highlighted")[0], choices.get());
1504 if (index >= choices.length) index = choices.length - 1;
1509 choice = $(choices[index]);
1546 var choices = this.findHighlightableChoices();
1547 this.highlight(choices.index(el));
2480 "<ul class='select2-choices'>",
2580 var selector = ".select2-choices", selection;
2903 // if we reached max selection size repaint the results so choices
3032 choices = this.results.find(".select2-result"),
3036 choices.each2(function (i, choice) {
3058 if(!this.opts.createSearchChoice && !choices.filter('.select2-result:not(.select2-selected)').length > 0){