Thursday, January 23, 2014

dojox events!

Per this, a good way to go fishing for the current view in a dojox app is by way of a property set like so:

app.on("app-layoutView",
   function(evt){
      var view = evt.view;
      app.currentView = view;
   });

 
 

Potential pain: Having this event fire off for a subview (tab within a "page") and then fire off for a view ("page") clobbering the more specific route.

No comments:

Post a Comment