Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Add tree expander button on basis of a condition

$
0
0

@SmilyArora wrote:

Hi,
Say i have a json:
[
{
“id”: “abc”,
“hasSubprocess”: “ui-xd”,
“parent”: null
},
{
“id”: “bcd”,
“hasSubprocess”: null,
“parent”: “abc”
},
{
“id”: “cde”,
“hasSubprocess”: “ui-id”,
“parent”: “bcd”
}
]

i) On the basis of hasSubprocess value, i want to display a treeExpanderButton(i.e. if it’s not null then it shows a treeExpanderButton).

ii) If there’s a treeExpanderButton, then on click of that button(on demand) i have to fetch the sub-process tree and display it there.

How can i achieve the mentioned two cases?(Also, the above tree with 3 nodes is present there already.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles