Jonathan Ouellette 580e90f6a2 initial add
2022-09-27 14:10:30 -07:00

10 lines
1.7 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){function t(t,i){var l=i.find("["+n.attr("align")+"="+t+"]");return l[0]?e('<div class="km-'+t+'item" />').append(l).prependTo(i):undefined}function i(t){var i=t.siblings(),n=!!t.children("ul")[0],l=!!i[0]&&""===e.trim(t.text());t.prevAll().toggleClass("km-absolute",n),t.toggleClass("km-show-title",l),t.toggleClass("km-fill-title",l&&!e.trim(t.html())),t.toggleClass("km-no-title",n),t.toggleClass("km-hide-title","hidden"==t.css("visibility")&&!i.children().is(":visible"))}var n=window.kendo,l=n.mobile,o=l.ui,s=n.roleSelector,r=o.Widget,d=r.extend({init:function(i,n){var l=this;r.fn.init.call(l,i,n),i=l.element,l.container().bind("show",e.proxy(this,"refresh")),i.addClass("km-navbar").wrapInner(e('<div class="km-view-title km-show-title" />')),l.leftElement=t("left",i),l.rightElement=t("right",i),l.centerElement=i.find(".km-view-title")},options:{name:"NavBar"},title:function(e){this.element.find(s("view-title")).text(e),i(this.centerElement)},refresh:function(e){var t=e.view;t.options.title?this.title(t.options.title):i(this.centerElement)},destroy:function(){r.fn.destroy.call(this),n.destroy(this.element)}});o.plugin(d)}(window.kendo.jQuery)})}("function"==typeof define&&define.amd?define:function(e,t){return t()});
//@ sourceMappingURL=kendo.mobile.navbar.min.js.map