New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

nouislider-angular

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nouislider-angular

Angular wrapper for nouislider

latest
Source
npmnpm
Version
2.8.0
Version published
Maintainers
1
Created
Source

nouislider-angular

Check demo at http://yankovsky.github.io/nouislider-angular/examples

Updated for New NoUISlider versions

You can pass any nouislider options options to ya-no-ui-slider directive.

Installation

Install with NPM

npm install nouislider-angular

Install with Bower

bower install nouislider-angular

Dependencies

For this directive to work you need to include angular and nouislider js first. Check example to see how it is done.

Basic usage

angular.module('sampleApp', ['ya.nouislider'])
  .controller('SampleCtrl', function($scope) {
    $scope.options = {
        start: [20, 70],
        range: {min: 0, max: 100}
    }
})
<div ya-no-ui-slider='options'></div>

Options

Global config

You can set global configuration value yaNoUiSliderConfig and all nouislider options will inherit from it:

angular.module('sampleApp', ['ya.nouislider'])
    .value('yaNoUiSliderConfig', {step: 1})

Event handlers

$scope.eventHandlers = {
    update: function(values, handle, unencoded) {},
    slide: function(values, handle, unencoded) {},
    set: function(values, handle, unencoded) {},
    change: function(values, handle, unencoded) {}
}
<div ya-no-ui-slider='options' 
     ya-no-ui-slider-events='eventHandlers'></div>

Disable slider or individual handlers

<div ya-no-ui-slider='options' 
     ya-no-ui-slider-disabled='sliderDisabled'
     ya-no-ui-slider-handle1-disabled='handle1Disabled'
     ya-no-ui-slider-handle2-disabled='handle2Disabled'></div>

Slide event debounce

Use number to specify delay in ms or use special value "Infinity" to disable updating model on slide event.

<div ya-no-ui-slider='options' 
     ya-no-ui-slider-slide-debounce='300'></div>
     
<div ya-no-ui-slider='options' 
     ya-no-ui-slider-slide-debounce='Infinity'></div>

Development

For development use examples/index.html file and some local web server.

Building minified version

To build minified version use npm run build command.

Keywords

angular

FAQs

Package last updated on 17 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts