NLincoln / ember-cli-ion-rangeslider

NO LONGER MAINTAINED An Ember and ion.RangeSlider integration, packaged as an Ember-cli addon.
MIT License
0 stars 1 forks source link

THIS PROJECT IS NO LONGER MAINTAINED. I SUGGEST YOU MIGRATE TO ANOTHER ADDON SUCH AS EMBER-PAPER, OR MIGRATE TO UPSTREAM.

Ember-cli-ion-rangeslider

An Ember and ion.RangeSlider integration, packaged as an Ember-cli addon. Check ion.RangeSlider and Ember-cli.

ion.rangeSlider

Browser Support

Should run wherever Ember and ion.RangeSlider run.

Installation

As an Ember CLI addon (0.1.5 or later)

In your ember-cli project run

ember install:addon ember-cli-ion-rangeslider

As an Ember CLI addon (prior to 0.1.5)

In your ember-cli project run

npm install --save-dev ember-cli-ion-rangeslider
ember g ember-cli-ion-rangeslider

As a Standalone Library

Download a release. Copy to your vendor directory and link up the .js file.

Usage

This addon provides an ember-ion-rangeslider component.

{{ember-ion-rangeslider
  type="double"
  grid=true
  min=1
  max=100
  step=1
  from=fromItem
  to=toItem}}

Properties

Please review ion.RangeSlider docs and demos

Skin customization

You can customize which skin to use in your Brocfile.

//your-app/Brocfile.js

var EmberApp = require('ember-cli/lib/broccoli/ember-app');

var app = new EmberApp({
  'ember-cli-ion-rangeslider': {

    // valid values are `nice`, `modern`, 'html5', 'flat`, `simple` or false
    skin: 'html5' //default `nice`
  }
});

module.exports = app.toTree();

If you want to use the default skin (i.e. nice), you don't need to specify any options or even modify your existing EmberApp. If you don't want to use any of the available skins, simply assign false or any "falsy" value to the skin option and no skin including the related assets (css styles & sprites) will be used.

ion.rangeSlider.css - is merged and bundled with your /assets/vendor.css, regardless of the defined options. This style defines a bare minimum required to view and interact with ion.rangeSlider.

Running

ember serve

Visit your app at http://localhost:4200.

Running Tests

ember test
ember test --server

Building

ember build

For more information on using ember-cli, visit http://www.ember-cli.com/