new module:ct-presenter /control /selectionfield /Toggle Switch Control()
This class is constructed by presenter automatically on your behalf.
A Caplin provided toggle-switch control that can be used to render instances of
module:br-presenter/node/SelectionField
within presenter.
The Caplin toggle-switch control has the logical name caplin-toggle-switch, and can be used within templates as follows:
<span data-bind="value:selectionFieldProperty, control:'caplin-toggle-switch'"></span>
The toggle-switch control can only be used to display SelectionField
instances having exactly two
options.
- Implements:
- Deprecated:
- This class has been deprecated. Please use
module:br-presenter/control/selectionfield/ToggleSwitchControl
instead.
- This class has been deprecated. Please use