首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Appgyver超音速抽屉没有出现

Appgyver超音速抽屉没有出现
EN

Stack Overflow用户
提问于 2015-03-22 21:39:54
回答 2查看 321关注 0票数 1

我试着在类固醇超音速应用程序中展示左抽屉。我没有标签,我使用根视图。

我在structure.coffee文件中使用了以下代码(这是我唯一更改的文件):

代码语言:javascript
复制
# Read more about app structure at http://docs.appgyver.com

module.exports =

  # See styling options for tabs and other native components in app/common/native-styles/ios.css or app/common/native-styles/android.css
    rootView:
     location: "example#getting-started"

  preloads: [
    {
      id: "learn-more"
      location: "example#learn-more"
    }
    {
      id: "using-the-scanner"
      location: "example#using-the-scanner"
    }
  ]

  drawers:
    left:
      id: "leftDrawer"
      location: "example#drawer"
      showOnAppLoad: false
     options:
      animation: "swingingDoor"

  initialView:
     id: "initialView"
     location: "example#initial-view"

左边什么也没出现。如果我将showOnAppLoad更改为true,则没有任何可见的内容。

我还应该做些什么?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2015-03-31 21:44:47

这是一个coffeescript错误:框架的创建者非常聪明,编译依赖于缩进。很棒的thinking...very建设性的。

票数 2
EN

Stack Overflow用户

发布于 2015-10-17 09:28:46

以防万一有人访问此页面寻找解决方案:

structure.coffee文件中

代码语言:javascript
复制
  // the line below should be intended so it become part of array above it
  drawers:
    left:
      id: "leftDrawer"
      location: "home#drawer"
      ...etc
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29200173

复制
相关文章

相似问题

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