mesa-fab-approval/Fab2ApprovalSystem/Scripts/kendo/kendo.mobile.buttongroup.min.js
Jonathan Ouellette 580e90f6a2 initial add
2022-09-27 14:10:30 -07:00

10 lines
1.9 KiB
JavaScript

/*
* Kendo UI Complete v2013.3.1119 (http://kendoui.com)
* Copyright 2013 Telerik AD. All rights reserved.
*
* Kendo UI Complete commercial licenses may be obtained at
* https://www.kendoui.com/purchase/license-agreement/kendo-ui-complete-commercial.aspx
* If you do not own a commercial license, this file shall be governed by the trial license terms.
*/
!function(define){return define(["./kendo.mobile.application.min"],function(){!function(e,n){function t(n){return e('<span class="km-badge">'+n+"</span>")}var i=window.kendo,a=i.mobile.ui,s=a.Widget,d="km-state-active",o="select",r="li:not(."+d+")",l=s.extend({init:function(e,n){var t=this;s.fn.init.call(t,e,n),t.element.addClass("km-buttongroup").find("li").each(t._button),t.element.on(t.options.selectOn,r,"_select"),t.select(t.options.index)},events:[o],options:{name:"ButtonGroup",selectOn:"down",index:-1},current:function(){return this.element.find("."+d)},select:function(t){var i=this,a=-1;t!==n&&-1!==t&&(i.current().removeClass(d),"number"==typeof t?(a=t,t=e(i.element[0].children[t])):t.nodeType&&(t=e(t),a=t.index()),t.addClass(d),i.selectedIndex=a)},badge:function(n,i){var a,s=this.element;return isNaN(n)||(n=s.children().get(n)),n=s.find(n),a=e(n.children(".km-badge")[0]||t(i).appendTo(n)),i?(a.html(i),this):i===!1?(a.empty().remove(),this):a.html()},_button:function(){var n=e(this).addClass("km-button"),a=i.attrValue(n,"icon"),s=i.attrValue(n,"badge"),d=n.children("span"),o=n.find("img").addClass("km-image");d[0]||(d=n.wrapInner("<span/>").children("span")),d.addClass("km-text"),!o[0]&&a&&n.prepend(e('<span class="km-icon km-'+a+'"/>')),s&&t(s).appendTo(n)},_select:function(e){if(!(e.which>1||e.isDefaultPrevented())){var n=this;n.select(e.currentTarget),n.trigger(o)}}});a.plugin(l)}(window.kendo.jQuery)})}("function"==typeof define&&define.amd?define:function(e,n){return n()});
//@ sourceMappingURL=kendo.mobile.buttongroup.min.js.map