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

How can i increase the width of tooltip dynamically?

$
0
0

@dmaurya24 wrote:

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.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles