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

Tooltip issue with node

$
0
0

@YogeshMohan wrote:

hi,
i am facing one issue with tooltip in gojs node while the text is empty then also tooltip is getting displayed. i just want to show tooltip when the text is present

code using :

{
toolTip: // define a tooltip for each node that displays the color as text
$(go.Adornment, "Auto",
$(go.Shape, { fill: "#444" }),
$(go.TextBlock, { margin: 4 },
new go.Binding("text", "", diagramNodeInfo))
)
}

function diagramNodeInfo(model) {
if (model.Error != null) {
return model.Error;
} else {
if (model.PluginName == null) {
model.PluginName = model.ActionType;
}
return model.text;
}
}

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles