我试图在Steroids Supersonic示例应用程序中显示左抽屉。 我没有标签,我使用根视图。
我在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,则无法显示任何内容。
我还应该设置什么?
答案 0 :(得分:2)
这是 coffeescript 错误:框架的创建者非常聪明,编译依赖于 缩进 。伟大的思考......非常有建设性。
答案 1 :(得分:0)
以防万一有人访问此页面寻找解决方案:
<{1>}文件中的
structure.coffee