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.
Attributes | Name and Description |
---|---|
|
caplin.presenter.control.selectionfield.ToggleSwitchControl()
This class is constructed by presenter automatically on your behalf. |
►
caplin.presenter.control.selectionfield.ToggleSwitchControl()
This class is constructed by presenter automatically on your behalf.