Appgyver 超音速抽屉未显示
Appgyver Supersonic Drawer not showing up
我试图在 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,则不会显示任何内容。
我还应该设置什么?
这是一个 coffeescript 错误:框架的创建者非常聪明,编译依赖于 缩进。很棒的想法...非常有建设性。
以防万一有人访问此页面寻找解决方案:
在 structure.coffee
文件中
// the line below should be intended so it become part of array above it
drawers:
left:
id: "leftDrawer"
location: "home#drawer"
...etc
我试图在 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,则不会显示任何内容。
我还应该设置什么?
这是一个 coffeescript 错误:框架的创建者非常聪明,编译依赖于 缩进。很棒的想法...非常有建设性。
以防万一有人访问此页面寻找解决方案:
在 structure.coffee
文件中
// the line below should be intended so it become part of array above it
drawers:
left:
id: "leftDrawer"
location: "home#drawer"
...etc