Search
TabControl Constructor
See Also
 






Initializes a new instance of the TabControl class.

Namespace: MindFusion.Common.UI
File: TabControl.js

 Syntax

JavaScript  Copy Code

function TabControl ([element])

 Parameters

element
Optional.

HTMLElement. The control's associated Dom element.

 Example

The following code creates a new TabControl using a <div> element called tabcontrol defined in a web page:

JavaScript  Copy Code
// create a new instance of the TabControl control
var tabControl = new ui.TabControl(document.getElementById("tabcontrol"));
tabControl.width = tabControl.height = new ui.Unit(100, ui.UnitType.Percent);
tabControl.theme = "standard";

 See Also