@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
1 lines • 1.8 kB
JavaScript
module.exports=function(t){var r={};function i(e){if(r[e])return r[e].exports;var n=r[e]={exports:{},id:e,loaded:!1};return t[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}return i.m=t,i.c=r,i.p="",i(0)}({0:function(e,n,t){e.exports=t(1316)},3:function(e,n){e.exports=function(){throw Error("define cannot be used indirect")}},1315:function(e,n){e.exports=require("./kendo.html.base")},1316:function(e,n,t){var r;t(3),t=[t(1315)],void 0===(n="function"==typeof(r=function(){var e={id:"html.chip",name:"Html.Chip",category:"web",description:"HTML rendering utility for Kendo UI for jQuery.",depends:["html.base"],features:[]},t=window.kendo.jQuery,n=void 0,r=window.kendo,i=r.html.HTMLBase,o=function(e,n){if(!e||t.isPlainObject(e)){n=e;e=t("<span></span>")}return new a(e,n).html()},a=i.extend({init:function(e,n){var t=this;i.fn.init.call(t,e,n);t._wrapper()},options:{name:"HTMLChip",size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base",attr:{},icon:"",iconAttr:{},removable:false,removableAttr:{},removeIcon:"x-circle",content:"",text:"",stylingOptions:["size","rounded","fillMode","themeColor"]},_wrapper:function(){var e=this,n=e.options;e.wrapper=e.element.wrap("<span class='k-chip'></span>").parent().attr(n.attr);e._addClasses();if(n.icon)e.wrapper.prepend(t("<span class='k-chip-icon k-icon k-i-"+n.icon+"'></span>").attr(n.iconAttr));e.element.addClass("k-chip-content");if(n.text)e.element.html('<span class="k-chip-label">'+n.text+"</span>");if(n.removable)e.wrapper.append(t("<span class='k-chip-action k-chip-remove-action'><span class='k-icon k-i-"+n.removeIcon+"'></span></span>").attr(n.removableAttr))}});return t.extend(r.html,{renderChip:o,HTMLChip:a}),r.cssProperties.registerPrefix("HTMLChip","k-chip-"),window.kendo})?r.apply(n,t):r)||(e.exports=n)}});