"autoExclusive"
All ToggleSwitch EWOs where autoExclusive = TRUE behaves as they belong to the same exclusive button group. This means that only one ToggleSwitch can be "on" at the same time. As soon as another ToggleSwitch is switched on, the previous one is turned off automatically.
Synopsis
shape.autoExclusive(bool);
Parameters
Parameter | Description |
---|---|
bool | Enables or disables the "autoExclusive" behavior. |
Description
All ToggleSwitch EWOs where autoExclusive = TRUE behaves as they belong to the same exclusive button group. This means that only one ToggleSwitch can be "on" at the same time. As soon as another ToggleSwitch is switched on, the previous one is turned off automatically.
Example
In the following example autoExclusive is enabled for three different ToggleSwitch EWOs which means that only one of those EWOs can be switched on at the same time.
main()
{
ToggleSwitch_ewo1.autoExclusive(1);
ToggleSwitch_ewo2.autoExclusive(1);
ToggleSwitch_ewo3.autoExclusive(1);
}
Assignment
ToggleSwitch EWO