Hi,
I've defined like this but didn't work. Any idea?
OrgChartNode = CompositeNode.classFromTemplate("OrgChartNode", { component: "GridPanel", id: "id", rowDefinitions: ["*"], columnDefinitions: ["22"], children: [ { component: "GridPanel", rowDefinitions: ["18", "5"], columnDefinitions: ["18", "5"], children: [ { gridColumn: 0, component: "Rect", name: "Background", pen: "black", //stroke: "black", strokeThickness: 5, }, { gridColumn: 0, component: "Image", name: "MainImage", autoProperty: true, location: "MainImage.png", margin: "3", imageAlign: "TopLeft" }, { gridColumn: 0, component: "Image", name: "FirstImage", autoProperty: true, location: "FirstImage.png", margin: "3, 3, 0, 0", imageAlign: "TopLeft" }, { gridColumn: 0, component: "Text", name: "NoOfElementsText", autoProperty: true, text: "title", margin: "3, 40, 0, 0", font: "Verdana 12px", textAlign: "BottomLeft" }, ] }, });
Regards, Kannan
|