@Abhishek wrote:
I want to hide selection adornment if in palette and for that i have binded visible property to a function in which we can get that part, but is there any property of that part which can tell the difference that it is being accessed inside the palette or main diagram panel?
function adornVisible(adorn){ //a way to tell if it is being accessed in palette or not } selectionAdornmentTemplate: // custom selection adornment $(go.Adornment, "Spot", $(go.Placeholder), $(go.Shape,"Triangle" { alignment: go.Spot.Center, alignmentFocus: go.Spot.Left, stroke: "pink" }), new go.Binding("visible", "", adornVisible).ofObject() )
Posts: 3
Participants: 2