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

Can I change node's toolTip dynamically?

$
0
0

@Kevin68 wrote:

I define toolTip in noteTemplate:

       {toolTip:  // define a tooltip for each node that displays the color as text
           $(go.Adornment, "Auto",
             $(go.Shape, { fill: "#FFFFCC" }),
             $(go.TextBlock, { name: "nodeToolTip",margin: 8 ,font: "bold 6pt Helvetica, Arial, sans-serif"},
                new go.Binding("text", "isHighlighted",function(h,shape) { return h ? "red" : shape.part.data.domainName + "\r\n" +shape.part.data.siteName + "\r\n" +shape.part.data.key  }).ofObject())
       )  // end of Adornment
    },

.

It works, but i want to change some nodes's toolTip content dynamically. Is that possible?

any help is appreciated!

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles