new FlipsSwitch(parent, optionsopt) → {FlipSwitch}
Create a new flip switch widget.
Parameters
-
parent
objectParent element.
-
options
object<optional>
Options.
Properties
-
title
string<optional>
'Click to switch'Title of the control.
-
checked
boolean<optional>
falseSwitch activated at creation?
-
className
string<optional>
Element class name for the widget.
-
title
Returns
-
FlipSwitchFlip switch widget element.
Source
Methods
static
value(valopt) → {boolean}
Return or set the flip switch status.
Parameters
-
val
boolean<optional>
If provided, set the flip switch (boolean) value to that of
val.
Returns
-
booleanFlip switch status.