demo20230512/Scripts/kendo/2014.2.716/kendo.mobile.splitview.min.js

16 lines
2.1 KiB
JavaScript
Raw Normal View History

2023-05-12 10:20:28 +08:00
/**
* Copyright 2014 Telerik AD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
!function(e,define){define(["./kendo.mobile.pane.min"],e)}(function(){return function(e){var t=window.kendo,n=t.mobile.ui,i=n.Widget,r="<div class='km-expanded-pane-shim' />",o=n.View,a=o.extend({init:function(o,a){var s,l=this;i.fn.init.call(l,o,a),o=l.element,e.extend(l,a),l._id(),l._layout(),l._overlay(),l._style(),t.mobile.init(o.children(t.roleSelector("modalview"))),l.panes=[],l._paramsHistory=[],l.content.children(t.roleSelector("pane")).each(function(){s=t.initWidget(this,{},n.roles),l.panes.push(s)}),l.expandedPaneShim=e(r).appendTo(l.element),l._shimUserEvents=new t.UserEvents(l.expandedPaneShim,{tap:function(){l.collapsePanes()}})},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=t.attrValue(n,"transition"),t.mobile.ui.View.prototype._layout.call(this),t.mobile.init(this.header.add(this.footer)),e.element.addClass("km-splitview"),e.content.addClass("km-split-content")},_style:function(){var t,n=this.options.style,i=this.element;n&&(t=n.split(" "),e.each(t,function(){i.addClass("km-split-"+this)}))},showStart:function(){var t=this;t.element.css("display",""),t.inited||(t.inited=!0,e.each(t.panes,function(){this.options.initial?this.navigateToInitial():this.navigate("")}),t.trigger("init",{view:t})),t.trigger("show",{view:t})}});n.plugin(a)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()});