diff --git a/README.md b/README.md index 2532883..b90f12a 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,18 @@ defaults = { Unbinding all event handlers attached to the switch element to prepare the object for garbage collection. +##### .enable() + +Enable disabled switch by re-adding event handlers and changing the opacity to 1. + +##### .disable() + +Disable switch by unbinding attached events and changing opacity to `disabledOpacity` value. + +##### .isDisabled() + +Check if switch is currently disabled by checking the `readonly` and `disabled` attributes on the checkbox and the `disabled` option set via JS. If any of those are present, the returned value is `true`. + ## Examples ##### Checked