UNPKG

@progress/kendo-ui

Version:

This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.

3 lines (2 loc) 2.48 kB
!function(o,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("kendo.combobox.js")):"function"==typeof define&&define.amd?define(["exports","kendo.combobox"],e):e(((o="undefined"!=typeof globalThis?globalThis:o||self).kendo=o.kendo||{},o.kendo._globals=o.kendo._globals||{},o.kendo._globals.Multicolumncombobox={}))}(this,(function(o){!function(){var o=window.kendo,e=o.ui,t=e.ComboBox,i=e.Select,n=/^\d+(\.\d+)?%$/i,l=t.extend({init:function(o,e){t.fn.init.call(this,o,e),this.list.parent().addClass("k-dropdowngrid-popup"),this._allColumnsWidthsAreSet(this.options)?this.list.parent().width(this._calculateDropDownWidth(this.options)):this.options.dropDownWidth&&this.list.parent().width(this.options.dropDownWidth)},options:{name:"MultiColumnComboBox",ns:".kendoMultiColumnComboBox",columns:[],dropDownWidth:null,filterFields:[]},setOptions:function(o){t.fn.setOptions.call(this,o),this._allColumnsWidthsAreSet(o)?this.list.parent().width(this._calculateDropDownWidth(o)):this.options.dropDownWidth&&this.list.parent().width(this.options.dropDownWidth)},_popup:function(){i.fn._popup.call(this),this.popup.element.removeClass("k-list-container")},_allColumnsWidthsAreSet:function(o){var e=o.columns;if(!e||!e.length)return!1;for(var t=0;t<e.length;t++){var i=e[t].width;if(!i||isNaN(parseInt(i,10))||n.test(i))return!1}return!0},_calculateDropDownWidth:function(e){for(var t=e.columns,i=o.support.scrollbar(),n=0;n<t.length;n++){var l=t[n].width;i+=parseInt(l,10)}return i},_wrapper:function(){t.fn._wrapper.call(this),this.wrapper.addClass("k-dropdowngrid")}});e.plugin(l),o.cssProperties.registerPrefix("MultiColumnComboBox","k-input-"),o.cssProperties.registerValues("MultiColumnComboBox",[{prop:"rounded",values:o.cssProperties.roundedValues.concat([["full","full"]])}])}(window.kendo.jQuery);var e=kendo;o.__meta__={id:"multicolumncombobox",name:"MultiColumnComboBox",category:"web",description:"The MultiColumnComboBox widget allows the selection from pre-defined values or entering a new value where the list popup is rendered in table layout.",depends:["combobox"],features:[{id:"mobile-scroller",name:"Mobile scroller",description:"Support for kinetic scrolling in mobile device",depends:["mobile.scroller"]},{id:"virtualization",name:"VirtualList",description:"Support for virtualization",depends:["virtuallist"]}]},o.default=e,Object.defineProperty(o,"__esModule",{value:!0})})); //# sourceMappingURL=kendo.multicolumncombobox.min.js.map