iContext

An iContext object is provided by the framework to a widget. It provides a set of services to a BTT widget so that the widget can interact with framework and elements on other pages. The iContext is implemented in the base class of JavaScriptâ„¢ class. And the APIs provided by iContext follows the design of the BTT widget.

BTT iContext provides the following APIs:
The usage of iContext in JavaScript file is as follows:
this.onLoad = function() {
	this.rootFrame = this.iContext.getElementById('rootFrame');
	this.rootFrame.src = this.iContext.getiWidgetAttributes().items.url.value;
}