Initializes a new instance of the TabControl class.
Namespace: MindFusion.Common.UI
File: TabControl.js
JavaScript Copy Code |
---|
function TabControl ([element]) |
HTMLElement. The control's associated Dom element.
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"; |