app.stage

Allows modification for currently running stage. Every widgets that you defined in layout are stored inside app.stage.layout. Thus, you could perform widget manipulation programmatically with this global object.

Properties#

nameTypeDefault ValueDescription
urlstring"/"Current URL route.
titlestringnullCurrent stage's name.
descriptionstringnullCurrent stage's description.
onCreatedfunction or string(empty async function)Will be called after passive stage creation.
onReadyfunction or string(empty function)Will be called after interactive stage creation.
onFocusfunction or string(empty function)Will be called after user gain focus on this app.
onUpdatefunction or string(empty function)Will be called each widget modification occured.
onDrawfunction or string(empty function)Will be called when redraw frame.
onUnfocusfunction or string(empty function)Will be called after user loses focus on this app.
onSuspendfunction or string(empty function)Will be called before destroying interactive stage.
onDestroyfunction or string(empty function)Will be called before destroying passive stage.

Read-only Properties#

nameTypeDescription
layoutLayoutRoot layout of current stage.