Search
TabPage.allowClose Property
See Also
 






Gets or sets a value indicating whether to show a close button in the header of this tab page.

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

 Syntax

JavaScript  Copy Code

get allowClose() {}

 Property Value

Boolean. true to show a close button, otherwise false.

 Example

The following code creates a new TabControl and adds a new TabPage that cannot be closed to its tabs collection.

JavaScript  Copy Code

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.allowClose = false;

tabControl.tabs.add(tab);

 See Also