Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

npn-slider-0.0.5.tgz

2

package.json
{
"name": "npn-slider",
"version": "0.0.4",
"version": "0.0.5",
"private": false,

@@ -5,0 +5,0 @@ "peerDependencies": {

@@ -1,3 +0,45 @@

# Angular6 Multi Range Slider Component
# NpnSlider (A Multi Range Slider Angular Component)
A reusable angular multi range slider component
[NpnSlider](https://npnm.github.io/NpnSlider/) is reusable multi range slider component using Angular6
## Installation
### NPM
```sh
npm install --save npn-slider
```
## Usage
### Html
```html
<npn-slider [min]="2006" [max]="2020" (onChange)="onSliderChange($event)"></npn-slider>
```
### Attributes
Attributes | Description
-----------|------------
@Input() <br> min: number | The minimum value of slider
@Input() <br> max: number | The maximum value of slider
@Input() <br> step: number | The value at which slider value should change
@Input() <br> showStepIndicator: boolean | Whether the step indicator should display or not
@Input() <br> minSelected: number | The selected value for slider's left handler
@Input() <br> maxSelected: number | The selected value for slider's right handler
@Output() <br> onChange: EventEmitter<number[]>() | The event will be fired on change of selected range of values
### Sample Code
```ts
import { NpnSliderModule } from "npn-slider";
@NgModule({
imports:[
..
NpnSliderModule
..
]
})
```
```ts
/*Method to listen for onChange event from slider*/
onSliderChange(selectedValues: number[]) {
this._currentValues = selectedValues;
}
```
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