Gets or sets the ToolTip content template.
Namespace: MindFusion.Common.UI
File: Tooltip.js
JavaScript Copy Code |
---|
get template() {} |
String. An HTML string representing the content template.
The following code creates a new instance of the ToolTip class associated with the HTMLElement of a diagram and sets its template property.
JavaScript Copy Code |
---|
var tooltip = new ui.Tooltip(diagram._element);
tooltip.template = t.outerHTML; |