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 it doesn't block scrolling.

Usage

  • Copy ion-custom-range.css to your www/css folder.

  • Copy ion-custom-range.js to your www/js folder.

  • Open index.html and:

    • Add CSS file to header block, after ionic.css, like this:
    <link href="css/ion-custom-range.css" rel="stylesheet">
    
    • Add JS file after ionic.bundle.js, like this:
    <script src="js/ion-custom-range.js"></script>
    
  • Open app.js and add ionicCustomRange to the list of modules, like this:

    angular.module('starter', ['ionic', 'ionicCustomRange'])
    
  • In template ion-custom-range can be used like this:

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

Example

Live example can be found on Ionic Playground.

  • Instructions
    • Open Google Chrome and enable Device Mode (first open Developer tools and on the top left, next to search icon there is a mobile icon)
    • Next, paste: http://play.ionic.io/m/fc9456fe858f

Full code preview (range component will not work in desktop browser without Device mode): http://play.ionic.io/app/fc9456fe858f

ion-custom-range's People

Contributors

bkuzmic avatar

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.