JavaScript/jQuery Diagram - nodes
An array of diagram nodes.
Use the nodes option to populate an array of diagram nodes.
jQuery
$(function() {
$("#diagram").dxDiagram({
nodes: {
dataSource: orgItems
},
edges: {
dataSource: orgLinks
},
layout: "tree"
});
});dataSource
Binds the nodes collection to the specified data.
The Diagram widget creates a shape for every node in the collection.
itemsExpr
Specifies the data field that contains nested items.
The current node's data object.
keyExpr
Specifies the data field that provides a node's key.
The current node's data object.
parentKeyExpr
Specifies data field that provides a parent node ID for a node.
The current node's data object.
textExpr
Specifies data field that provides a text for a node.
The current node's data object.
typeExpr
Specifies data field that provides a shape type for a node.
The current node's data object.
If you have technical questions, please create a support ticket in the DevExpress Support Center.