UNPKG

@progress/kendo-ui

Version:

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

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