@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) • 1.55 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("kendo.html.base.js")):"function"==typeof define&&define.amd?define(["exports","kendo.html.base"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).kendo=e.kendo||{},e.kendo._globals=e.kendo._globals||{},e.kendo._globals.HtmlChiplist={}))}(this,(function(e){!function(e){var t=window.kendo,i=t.html.HTMLBase,n=i.extend({init:function(e,t){var n=this;i.fn.init.call(n,e,t),n.wrapper=n.element.addClass("k-chip-list"),n._applyAriaAttributes(t),n._addClasses()},options:{name:"HTMLChipList",size:"medium",stylingOptions:["size"]},_applyAriaAttributes:function(t){var i=this,n=((t=e.extend({selectable:"none"},t)).attributes||{})["aria-label"];"none"!==t.selectable?i.element.attr({"aria-multiselectable":"multiple"===t.selectable,role:"listbox","aria-label":n||i.element.attr("id")+" listbox","aria-orientation":"horizontal"}):i.element.removeAttr("role aria-label aria-multiselectable aria-orientation")}});e.extend(t.html,{renderChipList:function(t,i){return(undefined===arguments[0]||e.isPlainObject(arguments[0]))&&(i=t,t=e("<div></div>")),new n(t,i).html()},HTMLChipList:n}),t.cssProperties.registerPrefix("HTMLChipList","k-chip-list-")}(window.kendo.jQuery);var t=kendo;e.__meta__={id:"html.chiplist",name:"Html.ChipList",category:"web",description:"HTML rendering utility for Kendo UI for jQuery.",depends:["html.base"],features:[]},e.default=t,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=kendo.html.chiplist.min.js.map