SWITCH Property
PLBCMP GUI Only
The SWITCH property uses a Bootstrap 5 'switch class' to show a toggle switch for a web CHECKBOX object. The property uses the following format:
SWITCH={value}
Note the following:
SWITCH may be used in CREATE, SETPROP, or GETPROP statements of a CHECKBOX object.
The SWITCH property is only used when a CHECKBOX object is created as a web object using the WebView mode.
{value} is a decimal number, a Numeric Variable, an Expression, or a keyword as defined in PLBEQU.INC. The supported values and keywords are:
|
Value |
Keyword |
The object is displayed as a ... |
|
0 |
$OFF |
checkbox (default) |
|
1 |
$ON |
toggle switch |
See Also: Object Properties, Object IO Instructions, Object Definitions
![]() |