Initializes a new instance of the UIControl class.
Namespace: MindFusion.Common
File: UIControl.js
JavaScript Copy Code |
---|
function UIControl ([element]) |
HTMLElement. The control's associated Dom element.
The following code creates a ToolTip instance, which is a class that derives from UIControl. The tooltip is created using the DOM element of a diagram canvas.
JavaScript Copy Code |
---|
var tooltip = new ui.Tooltip(diagram._element); tooltip.trigger = ui.TooltipTrigger.None; tooltip.follow = false; tooltip.theme = "peach"; |