AntonyThorpe\Knockout\KnockoutToggleCompositeButtonField
Creates a switch field with a visible data-bind on its children
Synopsis
class KnockoutToggleCompositeButtonField
extends ToggleCompositeField
{
- // members
- protected string $bindingType = "visible";
- protected array $casting = ;
- // Inherited methods from Common
- public $this setObservable()
- public string getObservable()
- public $this setBindingType()
- public string getBindingType()
- public string getOtherBindings()
- public $this setOtherBindings()
- public $this setHasFocus()
- public boolean getHasFocus()
- // Inherited methods from CommonComposite
- public $this setObservables()
- public array getObservables()
- public $this setLabelClass()
- public string getLabelClass()
Hierarchy
Extends
- SilverStripe\Forms\ToggleCompositeField
Uses
Members
protected
- $bindingType
—
string
bindingType -
$casting
casting of variables for security purposes - $hasFocus
—
boolean
$hasFocus - $labelClass
—
string
Place the label on the left or right hand side of the switch - $observable
—
string
$observable - $otherBindings
—
string
$otherBindings
Methods
Inherited from AntonyThorpe\Knockout\Common
public
- getBindingType() — getBindingType
- getHasFocus() — getHasFocus
- getObservable() — getObservable
- getOtherBindings() — getOtherBindings
- setBindingType() — setbindingType
- setHasFocus() — setHasFocus
- setObservable() — setObservable
- setOtherBindings() — setOtherBindings
Inherited from AntonyThorpe\Knockout\CommonComposite
public
- getLabelClass() — getLabelClass
- getObservables() — getObservables
- setLabelClass() — set the Label class
- setObservables() — setObservables