Saturday, June 15, 2013

Grab elements by a class in Dojo 1.9.

In this case, I find all elements with dijitLayoutContainer slapped on them, but I really only want the first one which I assume will be around. In a dojox/app application this container holds a bunch of divs which are the outer containers for views.

function findDesiredViews() {
   require(["dojo/query"], function(query) {
      var viewWrapper = query(".dijitLayoutContainer")[0];
      
whatever...

No comments:

Post a Comment