Skip to content

Commit

Permalink
Add Available Options section
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Radchenko committed Oct 17, 2014
1 parent 7138da3 commit bd64142
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ in your template:
{{x-toggle theme='skewed' size='large' toggle='enablePartyMode'}}
```

### Available Options

* `theme` - One of 'light', 'ios', 'flat', 'flip', 'skewed', 'default'.
Defaults to 'default' if not specified.
* `size` - One of 'small', 'medium', 'large'.
Defaults to 'medium' if not specified.
* `on` - Defaults to 'On'.
* `off` - Defaults to 'Off'.
* `toggle` - The toggle action, which has one argument e.g. `isToggled`.
* `toggled` - Defaults to `false`, meaning not enabled by default.

### Configuring

Add a configuration for `ember-cli-toggle` to include only the themes that
Expand Down

0 comments on commit bd64142

Please sign in to comment.