iOS 7 style switches for your checkboxes
https://github.com/abpetkov/switchery/pull/104 Check switchery element state before changing it https://github.com/abpetkov/switchery/pull/96 Adding semicolon to the end of the distribuition file
.isDisabled()
method was returning wrong values after triggering the .disable()
method, because of incorrect logic in the latter method.This release includes several new features, which include:
.destroy()
method (https://github.com/abpetkov/switchery/pull/54).enable()
and .disable()
methods (https://github.com/abpetkov/switchery/issues/30)The main feature of this release is the option to use small and/or large sized switches. This is possible via the size
setting. The two valid options to pass are small
and large
. Anything else will result in rendering the default size of the switch. All of the sizes are defined within our main CSS file.
Another addition is respecting the native checkbox readonly
attribute, which if present will disable the switch.