This repository was archived by the owner on Jun 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
App
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.
app = new App
#chrome: 'ios'
#title: 'www.framework.com'
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'
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'
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>]