Search
TreeViewNode.fromObject Method
See Also
 





Loads the tree view items from a data object.

Namespace: MindFusion.Diagramming
File: TreeViewNode.js

 Syntax

JavaScript  Copy Code

function fromObject (data)

 Parameters

data

Object. The object containing the tree view data.

 Example

JavaScript  Copy Code

node.fromObject(
[{
    text: "Order",
    imageLocation: "icon_calculator.png"
},
{
    text: "Date",
    imageLocation: "icon_time.png"
},
{
    text: "Products",
    imageLocation: "icon_delivery.png",
    children: [{ text: "Name" }, { text: "TotalPrice", brush: "lightblue" }]
}]
);

 See Also