Nestor
Nestor

Reputation: 8384

Appgyver Supersonic Drawer not showing up

I have tried to show a left drawer in a Steroids Supersonic example application. I don't have tabs, I use a root view.

I use the following code in the structure.coffee file (this is the only file I changed):

# 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"

Nothing shows up on the left side. If I change the showOnAppLoad to true, nothing is visible.

What else should I set?

Upvotes: 1

Views: 328

Answers (2)

Nestor
Nestor

Reputation: 8384

It was a coffeescript error: the creators of the framework were so smart that the compilation depends on indentation. Great thinking...very constructive.

Upvotes: 2

Mohamed Mo Kawsara
Mohamed Mo Kawsara

Reputation: 4688

Just in case if anybody visited this page looking for solution:

in structure.coffee file

  // the line below should be intended so it become part of array above it
  drawers:
    left:
      id: "leftDrawer"
      location: "home#drawer"
      ...etc

Upvotes: 0

Related Questions