Search
UIControl Constructor
See Also
 






Initializes a new instance of the UIControl class.

Namespace: MindFusion.Common
File: UIControl.js

 Syntax

JavaScript  Copy Code

function UIControl ([element])

 Parameters

element
Optional.

HTMLElement. The control's associated Dom element.

 Example

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

 See Also