Caplin Trader 5.1.0

Class: module:br-presenter/control/selectionfield/ToggleSwitchControl


A provided toggle-switch control that can be used to render instances of module:br-presenter/node/SelectionField within presenter. This class is constructed by presenter automatically on your behalf.

The toggle-switch control is aliased by br.toggle-switch, and can be used within templates as follows:

  <span data-bind="controlNode:selectionFieldProperty, control:'br.toggle-switch'"></span>

The toggle-switch control can only be used to display SelectionField instances having exactly two options.