Skip to content
This repository was archived by the owner on Jun 14, 2021. It is now read-only.
Steve Ruiz edited this page Feb 3, 2018 · 2 revisions

The App component is a Flow Component with extra properties and methods for simulating a native chrome and for managing Views. It only works with Views.

An App should be the first instance in your project, as it will bring all other Framework components into play.


Constructor

app = new App
    #chrome: 'ios'
    #title: 'www.framework.com'

Properties

app.chrome <string>

Which device chrome the app should display. At the moment it has three options: 'ios', 'safai' and null. Constructor only.

myApp = new App
    chrome: 'safari'

app.title <string>

The app's title. If the app's chrome is set to 'safari', this title will be used for the Header's url.

myApp = new App
    chrome: 'safari'
    title: 'www.framework.com'

app.views <array>

An array containing each of the Views that have so far been created.

myApp = new App

myView = new View

print myApp.views # » [<View myView id:464 (0, 0) 375x667>]
Clone this wiki locally