Wednesday, June 5, 2013

Call a callback function from a Dojo transition.

Addendum 6/12/2013: This posting is bad. See this instead.

A transition in a dojox/app setting might look like this.

app.transitionToView(app.currentView.domNode, options, event);

 
 

In this setting, options.target will have the route path to transition to in it as a string. I mention that as a sidebar. But not to digress, you may bolt on a function to call on the other side of the transition like so:

app.transitionToView(app.currentView.domNode, options, event, myCallback());

 
 

This is also acceptable:

app.transitionToView(app.currentView.domNode, options, myCallback());

No comments:

Post a Comment