Search
TabPage Constructor
See Also
 






Initializes a new instance of the TabPage class.

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

 Syntax

JavaScript  Copy Code

function TabPage ([title])

 Parameters

title
Optional.

String. The display text of this tab.

 Example

The following code creates a new TabControl and adds a new TabPage to its tabs collection.

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.tabStripSize = new ui.Unit(100, ui.UnitType.Pixel);
tabControl.theme = "standard";

tabControl.selectedItemChanged.addEventListener(tabControlSelectedItemChanged);


function tabControlSelectedItemChanged(sender, args)
{
  if(args.oldItem.text == "First Tab")
  {
       //do something
  }
}

 See Also