Search
TabPage.template Property
See Also
 






Gets or sets an HTML string, representing the content template.

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

 Syntax

JavaScript  Copy Code

get template() {}

 Property Value

String. An HTML string representing the content template.

 Example

The following code uses the template property to assign a template to the TabPage.

JavaScript  Copy Code

var tab = new ui.TabPage("«");
tab.header.size = new ui.Unit(20);

var t = document.createElement("div");
var img = document.createElement("img");
img.width = img.height = "40";
img.src = "icon_fish.png";
img.style.verticalAlign = "middle";
t.appendChild(img);
var span = document.createElement("span");
span.innerText = "This user is not currently online";
t.appendChild(span);
tab.template = t.outerHTML;

 See Also