dojox/mobile/common (version 1.10)

Summary

A common module for dojox/mobile.

This module includes common utility functions that are used by dojox/mobile widgets. Also, it provides functions that are commonly necessary for mobile web applications, such as the hide address bar function.

See the dojox/mobile/common reference documentation for more information.

Property Summary

Method Summary

  • fromView(moveTo,transitionDir,transition,context,method) Function to perform the various types of view transitions, such as fade, slide, and flip.

Properties

toView
Defined by: dojox/mobile/View

Methods

fromView(moveTo,transitionDir,transition,context,method)
Defined by dojox/mobile/View

Function to perform the various types of view transitions, such as fade, slide, and flip.

Parameter Type Description
moveTo String

The id of the transition destination view which resides in the current page. If the value has a hash sign ('#') before the id (e.g. #view1) and the dojo/hash module is loaded by the user application, the view transition updates the hash in the browser URL so that the user can bookmark the destination view. In this case, the user can also use the browser's back/forward button to navigate through the views in the browser history. If null, transitions to a blank view. If '#', returns immediately without transition.

transitionDir Number

The transition direction. If 1, transition forward. If -1, transition backward. For example, the slide transition slides the view from right to left when transitionDir == 1, and from left to right when transitionDir == -1.

transition String

A type of animated transition effect. You can choose from the standard transition types, "slide", "fade", "flip", or from the extended transition types, "cover", "coverv", "dissolve", "reveal", "revealv", "scaleIn", "scaleOut", "slidev", "swirl", "zoomIn", "zoomOut", "cube", and "swap". If "none" is specified, transition occurs immediately without animation.

context Object

The object that the callback function will receive as "this".

method String | Function

A callback function that is called when the transition has finished. A function reference, or name of a function in context.

Examples

Example 1

Transition backward to a view whose id is "foo" with the slide animation.

performTransition("foo", -1, "slide");

Example 2

Transition forward to a blank view, and then open another page.

performTransition(null, 1, "slide", null, function(){location.href = href;});
Error in the documentation? Can’t find what you are looking for? Let us know!