GithubHelp home page GithubHelp logo

aurelia-ion-rangeslider's Introduction

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>

aurelia-ion-rangeslider's People

Contributors

arabsight avatar marwijn avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

lukpep

aurelia-ion-rangeslider's Issues

how to hook to onFinish event?

Hi - is there any change to hook to slider events?
After slider value change I'm making call to API - so right now i'm binding like:
from.bind="fromDays & debounce:500" to filtrate every movement but this causes 500ms dalay before API call after user finishesh playing with slider. If I can hook to onFinish event I would make API call instantly and ignore earlier movements.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.