我试着在类固醇超音速应用程序中展示左抽屉。我没有标签,我使用根视图。
我在structure.coffee文件中使用了以下代码(这是我唯一更改的文件):
# 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,则没有任何可见的内容。
我还应该做些什么?
发布于 2015-03-31 21:44:47
这是一个coffeescript错误:框架的创建者非常聪明,编译依赖于缩进。很棒的thinking...very建设性的。
发布于 2015-10-17 09:28:46
以防万一有人访问此页面寻找解决方案:
在structure.coffee文件中
// the line below should be intended so it become part of array above it
drawers:
left:
id: "leftDrawer"
location: "home#drawer"
...etchttps://stackoverflow.com/questions/29200173
复制相似问题