Correction to method capitalization in advanced recursion

This topic corrects an error of capitalization of the method setNodeLayout.

The Dojo code example of advanced recursion when mixing layouts in a nested graph uses incorrect capitalization of the method setNodeLayout. The error occurs in
IBM ILOG Dojo Diagrammer > Developing with the Dojo Diagrammer component > Using graph layout algorithms > Nested layouts > Layout of nested graphs in code

The correct usage is shown in this code example.

var diagram = dijit.byId("diagram");

// use a tree layout for the top-level graph:
var treeLayout = new ibm_ilog.graphlayout.tree.TreeLayout();
diagram.attr("nodeLayout", treeLayout);

// use a grid layout for the first subgraph:
var gridLayout = new ibm_ilog.graphlayout.grid.GridLayout();
subgraph1.setNodeLayout(gridLayout);

// use another tree layout with different parameters for the second subgraph:
var treeLayout2 = new ibm_ilog.graphlayout.tree.TreeLayout();
treeLayout2.setFlowDirection(ibm_ilog.graphlayout.Direction.BOTTOM);
subgraph2.setNodeLayout(treeLayout2 );

// perform layout recursively:
diagram.performGraphLayout(true);

Terms of Use | Feedback