Class
caplin.presenter.control.selectionfield

ToggleSwitchControl

The class has been deprecated and may be removed in future releases.
A Caplin provided toggle-switch control that can be used to render instances of caplin.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.

Constructor Summary

Attributes Name and Description
caplin.presenter.control.selectionfield.ToggleSwitchControl()

This class is constructed by presenter automatically on your behalf.

Methods implemented from class caplin.presenter.control.ControlAdaptor:
destroy, getElement, onViewReady, setElement, setOptions, setPresentationNode
Methods implemented from class caplin.presenter.property.PropertyListener:
onPropertyChanged, onPropertyUpdated, onValidationComplete, onValidationError, onValidationSuccess

Constructor Detail

caplin.presenter.control.selectionfield.ToggleSwitchControl()

This class is constructed by presenter automatically on your behalf.

Deprecated
This class has been deprecated. Please use caplin.presenter.control.selectionfield.CaplinToggleSwitchControl instead.