selectedIndex
|
Specifies the index of the currently-selected tab.
Example
if (Tab1.selectedIndex == 0) {
Gauge1.visible = true;
}
else {
Gauge1.visible = false;
}
|
Either syntax below can be used in component script:
For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required. |