Quantcast
Channel: Northwoods Software - Latest topics
Viewing all articles
Browse latest Browse all 7425

Is there a way to tell if node/part is in Palette or in diagram

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 7425

Latest Images

Trending Articles



Latest Images