Lines Matching refs:items
217 process: function (items) {
220 items = jQuery.grep(items, function (item) {
224 items = this.sorter(items);
226 if (!items.length && !this.options.addItem) {
230 if (items.length > 0) {
231 this.$element.data('active', items[0]);
236 if (this.options.items != 'all') {
237 items = items.slice(0, this.options.items);
242 items.push(this.options.addItem);
245 return this.render(items).show();
253 sorter: function (items) {
259 while ((item = items.shift())) {
311 render: function (items) {
318 jQuery.each(items, function (key, value) {
320 if (key > 0 && value[_category] !== items[key - 1][_category]) {
329 if (value[_category] && (key === 0 || value[_category] !== items[key - 1][_category])) {
340 items = jQuery(data).map(function (i, item) {
367 items.filter(':not(.dropdown-header)').first().addClass('active');
368 this.$element.data('active', items.first().data('value'));
370 this.$menu.html(items);
700 items: 8,