Skip to content

Commit

Permalink
Update readme with recent API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
abpetkov committed Apr 1, 2015
1 parent 389d754 commit 8b41852
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b41852

Please sign in to comment.