首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Onsen:如何在ons-tabbar中使用ons-splitter?

Onsen:如何在ons-tabbar中使用ons-splitter?
EN

Stack Overflow用户
提问于 2016-06-30 17:22:47
回答 0查看 1K关注 0票数 0

我正在使用onsen ui创建一个混合应用程序。

我只需要知道是否可以同时使用ons-splitterons-tabbar,因为我根本找不到任何关于它的引用。

当我将ons-splitter与ons-tabbar一起使用时,ons-splitter停止工作,但当我从页面中删除ons-tabbar时,一切又开始工作了。

这是我的代码:

代码语言:javascript
运行
复制
 <ons-splitter >
  <ons-splitter-side id="menu" side="right" width="220px" collapse swipeable>
    <ons-page>
      <ons-list>
        <ons-list-item onclick="fn.load('home.html')" tappable>
          Home
        </ons-list-item>
        <ons-list-item onclick="fn.load('settings.html')" tappable>
          settings
        </ons-list-item>
        <ons-list-item onclick="fn.load('about.html')" tappable>
          About
        </ons-list-item>

      </ons-list>

    </ons-page>
  </ons-splitter-side>
  <ons-splitter-content>
    <ons-navigator id="navi" page="home.html"></ons-navigator>
  </ons-splitter-content>
</ons-splitter>


<ons-tabbar id="menu2" position="bottom">
<ons-tab page="home.html" label="Search For Personal Trainers" icon="search-plus" onclick="fn.load('home.html')" tappable disabled></ons-tab>
</ons-tabbar>

任何帮助都将不胜感激。

EN

回答

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38118901

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档