GithubHelp home page GithubHelp logo

nisanarz / angular-rangeslider-directive Goto Github PK

View Code? Open in Web Editor NEW

This project forked from supertorio/angular-rangeslider-directive

0.0 2.0 0.0 106 KB

Slider directive implementation for AngularJS, without jQuery dependencies

License: MIT License

JavaScript 23.33% CSS 42.56% HTML 34.11%

angular-rangeslider-directive's Introduction

angular-rangeslider-directive

Styleable Range Slider Control directive for Angular with no jQuery or browser dependencies. Does not use the input range type. Allows for binding to model data.

Usage

angular
    .module('app', ['angularRangeSlider'])
    .controller('AppController', function($scope) {
        $scope.sliderValue = 200;
        $scope.lowerValue = 400;
        $scope.upperValue = 600;
    });

Single Item Example:

<p>Value: {{sliderValue}}</p>
<div range-slider
     floor="100"
     ceiling="1000"
     step="50"
     precision="2"
     highlight="left"
     ng-model="sliderValue"></div>

Range:

<p>Lower Value: {{lowerValue}}</p>
<p>Value 2: {{upperValue}}</p>
<div range-slider
     floor="100"
     ceiling="1000"
     dragstop="true"
     ng-model-low="lowerValue"
     ng-model-high="upperValue"></div>

Properties:

  • floor {number} Minimum Value for Slider
  • ceiling {number} Maximum Value for Slider
  • step {number} Value between steps in snapping on the scale
  • highlight {string} Left, Right, or false for single handle selectors, true or false for range selectors
  • precision {number} Maximum Value for Slider
  • dragstop {boolean} True will not update bound model data until mouse up
  • ngModel {number} Bound value for a single handle slider
  • ngModelLow {number} Bound value for lower limit of range selection
  • ngModelHigh {number} Bound value for upper limit of range selection
  • disabled {boolean} Bound value for disable element

License: MIT

angular-rangeslider-directive's People

Contributors

prajwalkman avatar nisanarz avatar supertorio avatar baelter avatar kashkovsky avatar sifu avatar steve8708 avatar tsvayer avatar bijoys avatar bugsel avatar

Watchers

James Cloos avatar  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.