Selectize.define('plugin_name',function(options){varself=this;// override the setup method to add an extra `click` handlerthis.setup=(function(){varoriginal=self.setup;returnfunction(){original.apply(this,arguments);this.$control.on('click','div',function(e){alert('A div was clicked!');...
Useful when loading options dynamically while the user types a search / filter expression. int 300 loadingClass The class name added to the wrapper element while awaiting the fulfillment of load requests. string 'loading' placeholder The placeholder of the control (displayed when nothing is...
escape) { return '<div class="optgroup-header">' + escape(item.title) + '</div>'; }, }, optgroups: [], // Init empty optgroups, we will dynamically add it in AJAX request later optgroupField: '