aurelia-ion-rangeslider
v0.2.0
Published
An aurelia-wrapper for ion-rangeslider
Downloads
2
Maintainers
Readme
aurelia wrapper for ion-rangeslider
Install
npm i aurelia-ion-rangeslider
Aurelia CLI config
skinModern theme is used here but you can use whatever theme you like. Add the following to the dependencies in aurelia.json:
"jquery",
{
"name": "ion-rangeslider",
"path": "../node_modules/ion-rangeslider",
"main": "js/ion.rangeSlider",
"deps": ["jquery"],
"resources": [
"css/ion.rangeSlider.css",
"css/ion.rangeSlider.skinModern.css"
]
},
{
"name": "aurelia-ion-rangeslider",
"path": "../node_modules/aurelia-ion-rangeslider/dist/amd",
"main": "index",
"deps": ["ion-rangeslider"]
},
{
"name":"aurelia-ion-rangeslider",
"path":"../node_modules/aurelia-ion-rangeslider/dist/amd",
"main":"index.js"
}
Copy images
"copyFiles": {
"node_modules/ion-rangeslider/img/*.*": "ion-rangeslider/img"
}
Setup plugin
In main.ts add:
aurelia.use.plugin('aurelia-ion-rangeslider');
Usage
<require from="ion-rangeslider/css/ion.rangeSlider.css"></require>
<require from="ion-rangeslider/css/ion.rangeSlider.skinModern.css"></require>
<aurelia-ion-rangeslider></aurelia-ion-rangeslider>