0.1.4 • Published 7 years ago

ember-ion v0.1.4

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

Latest NPM release TravisCI Build Status Test Coverage Code Climate Ember Observer Score License Dependencies Dev Dependencies

ember-ion

Highly Unstable at this moment. Please don't use

Configuration

Set in environment.js

Theme Settings

To set the theme from IOS, Material Design (Android) or Windows Phone. Use one of 'ios', 'md' or 'wp'

ion: {
  theme:'ios'; // ios; md; wp;
}

Usage

{{ion-toggle}}

Toggle Switch, it will return true or false.

checked required

Checked Toggle value, true or false

accent optional

What color or accent of the toggle is used

following accents are supoorted

  • danger
  • secondary

action optional

It will run the action provided to component. By default only 1 parameter will be passed but if name is also provided, it will be sent as second argument

name optional

It is only used to return value back to callback function

Sample Usage
{{ion-toggle checked=a action="prompt" name="allow_edits"}} {{a}} 
{{ion-toggle checked=b accent="danger"}} {{b}}
{{ion-toggle checked=c accent="secondary"}} {{c}}