UNPKG

@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) 2.1 kB
!function(e){"function"==typeof define&&define.amd?define(["kendo.mobile.pane.min"],e):e()}((function(){var e,i,n,t,a;e=window.kendo.jQuery,i=window.kendo,n=i.mobile.ui,t=n.Widget,a=n.View.extend({init:function(a,o){var l,s,r=this;t.fn.init.call(r,a,o),a=r.element,e.extend(r,o),r._id(),r.options.$angular||r._layout(),r._overlay(),r._style(),s=a.children(r._locate("modalview")),r.options.$angular?s.each((function(n,t){i.compileMobileDirective(e(t),o.$angular[0])})):i.mobile.init(s),r.panes=[],r._paramsHistory=[],r.options.$angular?(r.element.children(i.directiveSelector("pane")).each((function(){l=i.compileMobileDirective(e(this),o.$angular[0]),r.panes.push(l)})),r.element.children(i.directiveSelector("header footer")).each((function(){i.compileMobileDirective(e(this),o.$angular[0])}))):r.content.children(i.roleSelector("pane")).each((function(){l=i.initWidget(this,{},n.roles),r.panes.push(l)})),r.expandedPaneShim=e("<div class='km-expanded-pane-shim'></div>").appendTo(r.element),r._shimUserEvents=new i.UserEvents(r.expandedPaneShim,{fastTap:!0,tap:function(){r.collapsePanes()}})},_locate:function(e){return this.options.$angular?i.directiveSelector(e):i.roleSelector(e)},options:{name:"SplitView",style:"horizontal"},expandPanes:function(){this.element.addClass("km-expanded-splitview")},collapsePanes:function(){this.element.removeClass("km-expanded-splitview")},_layout:function(){var e=this,n=e.element;e.transition=i.attrValue(n,"transition"),i.mobile.ui.View.prototype._layout.call(this),i.mobile.init(this.header.add(this.footer)),e.element.addClass("km-splitview"),e.content.addClass("km-split-content")},_style:function(){var i,n=this.options.style,t=this.element;n&&(i=n.split(" "),e.each(i,(function(){t.addClass("km-split-"+this)})))},showStart:function(){var i=this;i.element.css("display",""),i.inited?this._invokeNgController():(i.inited=!0,e.each(i.panes,(function(){this.options.initial?this.navigateToInitial():this.navigate("")})),i.trigger("init",{view:i})),i.trigger("show",{view:i})}}),n.plugin(a)})); //# sourceMappingURL=kendo.mobile.splitview.min.js.map