app
In HTML, we know window as global environment object. On the other side, FIWL uses app to give access for your app environment.
Constants#
| Name | Type | Description | 
|---|---|---|
| colors | object | Provides nice and easy color palette. Courtesy Google Material Design. | 
| net | object | Networking utility to communicate with server. | 
| manifest | object | Access to app's manifest. | 
| res | object | Access to current stage's resources including style. | 
| display | object | Provides app's viewport information including resolution, scaling, and orientation. | 
| unit | object | Unit conversion utility to help us convert unit (as example dp to px) easily. | 
| event | object | Access to event listener registration. | 
| widgets | object | Contains classes of widgets that linked to FIWL parser. | 
| stage | object | Allows modification for currently running stage. | 
Methods#
| Name | Return Type | Description | 
|---|---|---|
| goto | Promise<void> | Call this if you need to navigate to another stage. | 
goto#
Call this if you need to navigate to another stage.
Parameters:
- goto: (string type) URL of intended stage, relative to your website URL.
 
Return: Promise<void>. Use .then(() => { your code here }) to run something after stage swapped.