X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsymbols%2Fsrc%2FRoo_bootstrap_ComboBox.js.html;h=d29e69a27ea570736810a1e153ebd074ec520ff9;hb=566e599dcc7c078e374681414f229076d9f8f89e;hp=3d156e4c59f883ca9ba191a6c24c00e05632736c;hpb=6d553f1e80e82db26f3ac87698735213d8b91ac6;p=roojs1 diff --git a/docs/symbols/src/Roo_bootstrap_ComboBox.js.html b/docs/symbols/src/Roo_bootstrap_ComboBox.js.html index 3d156e4c59..d29e69a27e 100644 --- a/docs/symbols/src/Roo_bootstrap_ComboBox.js.html +++ b/docs/symbols/src/Roo_bootstrap_ComboBox.js.html @@ -92,7 +92,14 @@ * Fires when tick the element * @param {Roo.bootstrap.ComboBox} combo This combo box */ - 'tick' : true + 'tick' : true, + /** + * @event touchviewdisplay + * Fires when touch view require special display (default is using displayField) + * @param {Roo.bootstrap.ComboBox} combo This combo box + * @param {Object} cfg set html . + */ + 'touchviewdisplay' : true }); @@ -1742,7 +1749,7 @@ } // scroll to? this.view.select(match); - var sn = Roo.get(this.view.getSelectedNodes()[0]) + var sn = Roo.get(this.view.getSelectedNodes()[0]); sn.scrollIntoView(sn.dom.parentNode, false); }, @@ -1761,7 +1768,7 @@ tag: 'div', cls: 'loading select2-more-results select2-active', html: 'Loading more results...' - }) + }); this.loading = this.list.select('.loading', true).first(); @@ -1815,7 +1822,7 @@ }, this.searchField); - var close = choice.select('a.select2-search-choice-close', true).first() + var close = choice.select('a.select2-search-choice-close', true).first(); close.on('click', this.onRemoveItem, this, { item : choice, data : o} ); @@ -2308,7 +2315,13 @@ var row = this.touchViewListGroup.createChild(template); if(this.displayField && typeof(d.data[this.displayField]) != 'undefined'){ - row.select('.roo-combobox-list-group-item-value', true).first().dom.innerHTML = d.data[this.displayField]; + var cfg = { + html : d.data[this.displayField] + } + + if(this.fireEvent('touchviewdisplay', this, cfg) !== false){ + row.select('.roo-combobox-list-group-item-value', true).first().dom.innerHTML = cfg.html; + } } if(!this.multiple && this.valueField && typeof(d.data[this.valueField]) != 'undefined' && d.data[this.valueField] == this.getValue()){