Search
TabPage.contentLoad Event
See Also
 






Raised when the page's content is loaded.

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

 Syntax

JavaScript  Copy Code

EventDispatcher contentLoad

 Event Data

The event handler method receives the following arguments:
sender
A TabPage instance, which is the source of the event. This object will be passed to the handler function as the first argument.
args
An EventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.

 Example

The following code creates a new TabControl, adds a new TabPage to it and handles its contentLoad event:

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

var tab = new ui.TabPage("«");
tab.header.size = new ui.Unit(20);
tab.header.interactive = false;
tab.header.tooltip = "Previous Tab";
tab.data = -1;
tab.navigateUrl = "products.html";
tab.templateUrl = "Window1.html";
tab.allowClose = false;

tab.contentLoad.addEventListener(handleContentLoad);

tabControl.tabs.add(tab);

function handleContentLoad(sender, args)
{
   if (sender == tab)
   {
      //do something
   }
}

 See Also