Make ALL link label invisible


Is there a way to make the user toggle between making linklabels visible and invisible for all the links .

Binding the property “visible” for a link label is working for me , but say there is a button to show/hide all link labels.

How can I do this for all link labels efficiently .
it would be helpful if i am able to get all the link data from the model and change it as well.

Just iterate over the GraphLinksModel.linkDataArray, calling Model.setDataProperty on each object.

Remember to put the whole loop (and any other changes that you want to make) in a transaction.

ok thanks that is what I thought as well , thanks