Gets or sets a value indicating whether user interactions are allowed for this control.
Namespace: MindFusion.Common
File: Control.js
JavaScript Copy Code |
---|
get enabled() {} |
Type: Boolean
Boolean. True if user interactions are allowed, otherwise false.
The following code creates a new TabPage and disables it:
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.enabled = false; tab.header.cssClass = "tab-back"; tabControl.tabs.add(tab); |