UNPKG

@progress/kendo-ui

Version:

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

1 lines 2.07 kB
module.exports=function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}({0:function(t,e,i){i(934),t.exports=i(934)},3:function(t,e){t.exports=function(){throw Error("define cannot be used indirect")}},934:function(t,e,i){var n,o,r;!function(l,define){o=[i(935)],n=l,r="function"==typeof n?n.apply(e,o):n,!(void 0!==r&&(t.exports=r))}(function(){!function(t,e){var i=window.kendo,n=i.ui.DropDownList,o=i.ui.editor.Dom,r=n.extend({init:function(e,o){var r=this;n.fn.init.call(r,e,o),i.support.mobileOS.ios&&(this._initSelectOverlay(),this.bind("dataBound",t.proxy(this._initSelectOverlay,this))),r.text(r.options.title),r.element.attr("title",r.options.title),r.wrapper.attr("title",r.options.title),r.bind("open",function(){if(r.options.autoSize){var t,e=r.list;e.css({whiteSpace:"nowrap",width:"auto"}),t=e.width(),t>0?t+=20:t=r._listWidth,e.css("width",t+i.support.scrollbar()),r._listWidth=t}})},options:{name:"SelectBox",index:-1},_initSelectOverlay:function(){var e,n,o,r,l=this,a=l.value(),s=this.dataSource.view(),c="",u=i.htmlEncode;for(n=0;n<s.length;n++)e=s[n],c+="<option value='"+u(e.value)+"'",e.value==a&&(c+=" selected"),c+=">"+u(e.text)+"</option>";o=t("<select class='k-select-overlay'>"+c+"</select>"),r=t(this.element).closest(".k-widget"),r.next(".k-select-overlay").remove(),o.insertAfter(r),o.on("change",function(){l.value(this.value),l.trigger("change")})},value:function(t){var i=this,o=n.fn.value.call(i,t);return t===e?o:(n.fn.value.call(i)||i.text(i.options.title),e)},decorate:function(e){var i,n,r,l,a=this,s=a.dataSource,c=s.data();for(e&&a.list.css("background-color",o.getEffectiveBackground(t(e))),i=0;i<c.length;i++)n=c[i].tag||"span",r=c[i].className,l=o.inlineStyle(e,n,{className:r}),l=l.replace(/"/g,"'"),c[i].style=l+";display:inline-block";s.trigger("change")}});i.ui.plugin(r),i.ui.editor.SelectBox=r}(window.kendo.jQuery)},i(3))},935:function(t,e){t.exports=require("./serializer")}});