Class: SC.SceneView


Extends SC.ContainerView.

Displays several views as scenes that can slide on and off the screen. The scene view is a nice way to provide a simple effect of moving from a higher level screen to a more detailed level screen. You will be able to optionally choose the kind of animation used to transition the two scenes as well if supported on the web browser.

Using SC.SceneView

To setup the scene view, you should define the 'scenes' property with an array of scene names. These will be the properties on the scene view that you can shift in an out of view as needed. You can edit the scenes property at any time. It will only be used when you start to transition from one scene to another.

Next you should set your nowShowing property to the name of the scene you would like to display. This will cause the view to transition scenes if it is visible on screen. Otherwise, it will simply make the new scene view the current content view and that's it.

Defined in: scene.js

Since:
Version 1.0

Field Summary

Field Detail

scenes Array

Array of scene names. Scenes will slide on and off screen in the order that you specify them here. That is, if you shift from a scene at index 2 to a scene at index 1, the scenes will animate backwards. If you shift to a scene at index 3, the scenes will animate forwards.

Default value:
null
transitionBackward Object (SC.SwapTransitionProtocol)
The transitionSwap plugin to use when animating backwards.
Default value:
null
See:
SC.ContainerView#transitionSwap
transitionBackwardOptions Object
The options for the given transitionSwap plugin when animating backwards.
See:
SC.ContainerView#transitionBackwardOptions
transitionForward Object (SC.SwapTransitionProtocol)
The transitionSwap plugin to use when animating forwards.
Default value:
null
See:
SC.ContainerView#transitionSwap
transitionForwardOptions Object
The options for the given transitionSwap plugin when animating forwards.
See:
SC.ContainerView#transitionBackwardOptions
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Apr 08 2015 10:02:21 GMT-0600 (CST)