i m working on a diagram i want to know how to make some of the link in it unselectable ?
consider this for instance how to make the link in this unselectable while if there were other links they were selectable
i m working on a diagram i want to know how to make some of the link in it unselectable ?
I don’t understand what your criteria are for making some Link unselectable.
The basic idea is to set Link.selectable to false, either by directly setting the property or through a Binding.
one more question where do i define the whole layer selection to be false?
like in the main diagram properties?
or i can do it anywhere and if my layer name is layerName: “Foreground”
i will set it like this Foreground.allowSelect = false?
var layer = myDiagram.findLayer("Foreground");
if (layer !== null) layer.allowSelect = false;
thank you very much