Lines Matching refs:item
128 updater: function (item) {
129 return item;
220 items = jQuery.grep(items, function (item) {
221 return that.matcher(item);
240 // Add item
248 matcher: function (item) {
249 var it = this.displayText(item);
257 var item;
259 while ((item = items.shift())) {
260 var it = this.displayText(item);
262 beginswith.push(item);
264 caseSensitive.push(item);
266 caseInsensitive.push(item);
273 highlighter: function (item) {
276 return item;
278 var matches = item.match(/(>)([^<]*)(<)/g);
292 first.push(item);
306 item = item.replace(second[i], second[i].replace(reg, '<strong>$&</strong>'));
308 return item;
340 items = jQuery(data).map(function (i, item) {
341 if ((item.__type || false) == 'category') {
342 return jQuery(that.options.headerHtml || that.theme.headerHtml).text(item.name)[0];
345 if ((item.__type || false) == 'divider') {
349 var text = self.displayText(item);
350 i = jQuery(that.options.item || that.theme.item).data('value', item);
353 .html(that.highlighter(text, item));
355 i.find('a').attr('href', self.itemLink(item));
357 i.find('a').attr('title', self.itemTitle(item));
360 self.$element.data('active', item);
374 displayText: function (item) {
375 return typeof item !== 'undefined' && typeof item.name != 'undefined' ? item.name : item;
378 itemLink: function (item) {
382 itemTitle: function (item) {
391 next = jQuery(this.$menu.find(jQuery(this.options.item || this.theme.item).prop('tagName'))[0]);
411 prev = this.$menu.find(jQuery(this.options.item || this.theme.item).prop('tagName')).last();
438 var itemTagName = jQuery(this.options.item || this.theme.item).prop('tagName');
719 item: '<li><a class="mikio-dropdown-item" href="#" role="option"></a></li>',
726 item: '<a class="mikio-dropdown-item" href="#" role="option"></a>',
727 itemContentSelector: '.mikio-dropdown-item',