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

Alternative to `rebuildParts` for just recalling the method bindings

$
0
0

@ciprianmocanu_servicenow wrote:

Is there a way that I can make the diagram rerun all the binding methods (for nodes and links), like this one:

new Binding('', '', (data, obj) => {
    obj.visible = (filteredModel.nodes.indexOf(data.key) >= 0);
});

I’m currently using diagram.rebuildParts, but that seems to be inefficient (and I have a large set of data), as the documentation states.

PS: This is just one of the bindings. I have multiple other bindings which set line thickness, color etc

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles