Skip to content

marwijn/aurelia-ion-rangeslider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published