Search
UIControl Constructor
See Also
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: None Language Filter: C# Language Filter: Visual Basic Language Filter: Java Language Filter: JavaScript Language Filter: C++ Language Filter: XAML
C#
Visual Basic
Java
JavaScript
C++
XAML
Introduction
General Information
What's New In This Release
Version History
Getting Started
Code Completion With VSDoc IntelliSense
Programming Interface Overview
Tutorials
Reference
MindFusion.Common
Control Class
DateFormats Class
DateSettings Class
EventDispatcher Class
IdGenerator Class
Locale Class
NotifyCollectionChangedAction Class
NotifyCollectionChangedEventArgs Class
NotifyCollectionChangingEventArgs Class
PropertyEventArgs Class
UIControl Class
UIControl Members
UIControl Constructor
UIControl Methods
Unit Class
UnitType Enumeration
MindFusion.Common.Collections
MindFusion.Controls
MindFusion.Scheduling
Licensing
Online Resources
Technical Support
MindFusion Products

Initializes a new instance of the UIControl class.

Namespace: MindFusion.Common
Assembly: 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

UIControl Class
MindFusion.Common Namespace