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;
}
}