Giter Site home page Giter Site logo

ion-custom-range's Introduction

ion-custom-range

Custom range directive for Ionic Framework. It has the same look and feel of the input range component, except more additional features like custom ui, tips, control over min max values, click handler and also the double range slider.

Taken inspiration from https://github.com/bkuzmic/ion-custom-range

Usage

  • Install using bower:
bower install --save ion-custom-range
  • Add to index.html
    <link href="lib/ion-custom-range/dist/ion-custom-range.min.css" rel="stylesheet">
    <script src="lib/ion-custom-range/dist/ion-custom-range-min.js"></script>
  • add as dependency to app
angular.module('starter', ['ionic', 'starter.controllers', 'starter.services', 'ionicCustomRange'])

-Use as normal range of ionic

<div class="item range">
  <i class="icon ion-volume-low"></i>
  <ion-custom-range ng-model="data.volume" min="0" max="100" tip="true"></ion-custom-range>
  <i class="icon ion-volume-high"></i>
</div>

Demo

If you are seeing this on desktop (chrome) then enable Device Mode

http://ion-custom-range.ask4kapil.xyz

Sample app code:

https://github.com/ask4kapil/range-slider

Blog

http://ask4kapil.xyz/2016/02/20/ion-custom-range/

Sample screens

  • Basic range: set min, max, value, tip(true/false) and step

alt text

  • Editable: listen for changes in min, max, value, tip and step values

alt text

  • Advanced range slider: Double range slider, custom css etc.

alt text

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.