Socket
Socket
Sign inDemoInstall

npn-slider

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npn-slider

[NpnSlider](https://npnm.github.io/NpnSlider/) is reusable multi range slider component using Angular6


Version published
Weekly downloads
329
increased by5.45%
Maintainers
1
Weekly downloads
 
Created
Source

NpnSlider (A Multi Range Slider Angular Component)

NpnSlider is reusable multi range slider component using Angular6

Installation

NPM

npm install --save npn-slider

Usage

Html

<npn-slider [min]="2006" [max]="2020" (onChange)="onSliderChange($event)"></npn-slider>

Attributes

AttributesDescription
@Input()
min: number
The minimum value of slider
@Input()
max: number
The maximum value of slider
@Input()
step: number
The value at which slider value should change
@Input()
showStepIndicator: boolean
Whether the step indicator should display or not
@Input()
minSelected: number
The selected value for slider's left handler
@Input()
maxSelected: number
The selected value for slider's right handler
@Output()
onChange: EventEmitter<number[]>()
The event will be fired on change of selected range of values

Sample Code

import { NpnSliderModule } from "npn-slider";
  
@NgModule({
  imports:[
    ..
    NpnSliderModule
    ..
  ]
})
/*Method to listen for onChange event from slider*/
onSliderChange(selectedValues: number[]) {
    this._currentValues = selectedValues;
}

FAQs

Package last updated on 29 Jul 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc