www.webOShelp.net

Get the latest on:webOS Developers' RSS FeedwebOS Facebook page webOS Twitter Feed

Home Resources API Reference Mojo.Controller.AppController.createStageWithCallback(stageArguments, onCreate, optionalStageType)

Mojo.Controller.AppController.createStageWithCallback(stageArguments, onCreate, optionalStageType)

Creates a new stage and calls the specified function when the stage has completed loading.  Data can be bound to the callback function as needed, eliminating the need to pass parameters in the URI. The callback function can use the passed-in stage controller to push the first scene of the new stage.

Argument Type Description
stageArguments String|Object String: the name of the new stage; replaces any existing stage with this name.  Object: Must have a name property containing the name of the new stage. May have an assistantName property to specify the stage assistant and a height property to specify the height of a popup alert.
onCreate Function Function called when the stage is loaded.  The stage controller of the new stage is passed as the first parameter.
optionalStageType String The type of the new stage.  See Mojo.Controller.StageType for allowed values.
 

0 Comments

    Add Comment


      • >:o
      • :-[
      • :'(
      • :-(
      • :-D
      • :-*
      • :-)
      • :P
      • :\
      • 8-)
      • ;-)