@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
1 lines • 1.74 kB
JavaScript
module.exports=function(e){function t(n){if(i[n])return i[n].exports;var o=i[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var i={};return t.m=e,t.c=i,t.p="",t(0)}({0:function(e,t,i){e.exports=i(1248)},3:function(e,t){e.exports=function(){throw Error("define cannot be used indirect")}},1006:function(e,t){e.exports=require("./kendo.core")},1248:function(e,t,i){var n,o,l;!function(r,define){o=[i(1006)],n=r,l="function"==typeof n?n.apply(t,o):n,!(void 0!==l&&(e.exports=l))}(function(){return function(e,t){function i(t,i){var n=i.find("["+o.attr("align")+"="+t+"]");if(n[0])return e('<div class="km-'+t+'item" />').append(n).prependTo(i)}function n(t){var i=t.siblings(),n=!!t.children("ul")[0],l=!!i[0]&&""===e.trim(t.text()),r=!(!o.mobile.application||!o.mobile.application.element.is(".km-android"));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",r&&!i.children().is(":visible"))}var o=window.kendo,l=o.mobile,r=l.ui,s=r.Widget,a=s.extend({init:function(t,n){var o=this;s.fn.init.call(o,t,n),t=o.element,o.container().bind("show",e.proxy(this,"refresh")),t.addClass("km-navbar").wrapInner(e('<div class="km-view-title km-show-title" />')),o.leftElement=i("left",t),o.rightElement=i("right",t),o.centerElement=t.find(".km-view-title")},options:{name:"NavBar"},title:function(e){this.element.find(o.roleSelector("view-title")).text(e),n(this.centerElement)},refresh:function(e){var t=e.view;this.title(t.options.title)},destroy:function(){s.fn.destroy.call(this),o.destroy(this.element)}});r.plugin(a)}(window.kendo.jQuery),window.kendo},i(3))}});