このトピックでは、メソッド setNodeLayout の大文字化のエラーを修正します。
IBM ILOG Dojo Diagrammer > Developing with the Dojo Diagrammer component > Using graph layout algorithms > Nested layouts > Layout of nested graphs in code
正しい使用法は、このコードの例の中で示されています。
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);