hi i need help to make my text under tooltip dynamically.
My code is
myDiagram.nodeTemplateMap.add("Comment", // the default category
GO(go.Node, "Spot", nodeStyle(), {resizable: true, width: 200, height: 50},
new go.Binding("desiredSize", "size", go.Size.parse).makeTwoWay(go.Size.stringify),
// the main object is a Panel that surrounds a TextBlock with a rectangular Shape
GO(go.Panel, "Auto",
GO(go.Shape, "Rectangle",
{fill: "#00A9C9", name: "textBoxPanel", stroke: null, toLinkable: true, fromLinkable: true},
new go.Binding("figure", "figure")),
GO(go.TextBlock,
{
font: "bold 10pt Helvetica, Arial, sans-serif",
name: "textBox",
stroke: lightText,
wrap: go.TextBlock.WrapFit,
editable: true
},
new go.Binding("text").makeTwoWay()),
{
toolTip: // define a tooltip for each node that displays the color as text
GO(go.Adornment, "Auto",
GO(go.Shape, {fill: "#FFFFCC"}),
GO(go.TextBlock, {textAlign: "center",width:"200px"},
new go.Binding("text", "tooltip"))
) // end of Adornment
})));
please help me.