简体   繁体   English

将远程内容加载到Kendo UI Mobile TabStrip

[英]Loading remote content to Kendo UI Mobile TabStrip

What would be the right way to load dynamic content to Kendo UI Mobile TabStrip view? 将动态内容加载到Kendo UI Mobile TabStrip视图的正确方法是什么? I know how to load remote view but I want to keep TabStip header and footer. 我知道如何加载远程视图,但我想保留TabStip的页眉和页脚。

I have found instructions from Teleric how to load remote view but looks like they are not using TabStrip but still have tabs on the footer. 我从Teleric找到了有关如何加载远程视图的说明,但是看起来它们没有使用TabStrip,但是页脚上仍然有选项卡。 I was not able to find how to do it in the docs. 我无法在文档中找到方法。

EDIT: I was able to load remote content on Tab click. 编辑:我能够在选项卡上单击加载远程内容。 How can I do the same with javascript? 如何使用javascript进行相同操作?

Loading remote view is easy as: 加载远程视图很容易,因为:

app.navigate( url );

The problem why it did not work before (it was opening in fullscreen view) was because I forgot to use div wrapper with data-layout attribute in external file: 为什么以前不起作用(它以全屏视图打开)的问题是因为我忘记在外部文件中使用带有data-layout属性的div包装器:

<div data-role="view" data-layout="mobile-tabstrip">
   ....
</div>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM