Installations
npm install ngx-slider-2023
Releases
Unable to fetch releases
Developer
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
No
Node Version
18.15.0
NPM Version
9.7.2
Statistics
390 Stars
450 Commits
175 Forks
9 Watching
13 Branches
17 Contributors
Updated on 26 Nov 2024
Languages
TypeScript (86.71%)
HTML (6.74%)
SCSS (3.24%)
JavaScript (3.11%)
Shell (0.21%)
Total Downloads
Cumulative downloads
Total Downloads
2,333
Last day
-75%
2
Compared to previous day
Last week
91.7%
46
Compared to previous week
Last month
38.7%
172
Compared to previous month
Last year
932.5%
2,127
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
3
Peer Dependencies
3
ngx-slider
Website: https://angular-slider.github.io/ngx-slider/
Discord: https://discord.gg/DHsDghZRwZ
Self-contained, mobile friendly slider component for Angular based on angularjs-slider.
NOTE: The future of this project depends on willing volunteers. If you are able to help, please get in touch with the maintainers of this project on dedicated Discord server.
Dependencies
ngx-slider | Angular | RxJS | Actively supported |
---|---|---|---|
2.0.x | 6.x - 12.x | 6.x | No |
13.x | 13.x | 6.x | No |
14.x | 14.x | 6.x | No |
15.x | 15.x | 7.x | No |
16.x | 16.x | 7.x | Yes |
17.x | 17.x | 7.x | Yes |
18.x | 18.x | 7.x | Yes |
Note: Like with Angular only the latest 3 versions are actively supported.
Demos
-
Single slider - StackBlitz
-
Range slider - StackBlitz
-
Slider with ticks - StackBlitz
-
Customised slider - StackBlitz
-
Slider with custom style - StackBlitz
-
Vertical slider - StackBlitz
Installation
To add the slider to your Angular project:
npm install --save @angular-slider/ngx-slider
Once installed, add the slider to your app.module.ts
:
1import { NgxSliderModule } from '@angular-slider/ngx-slider'; 2 3... 4 5@NgModule({ 6 ... 7 imports: [ 8 ... 9 NgxSliderModule, 10 ... 11 ], 12 ... 13}) 14export class AppModule {}
Sample usage
Now you can use the slider component in your app components, for example in app.component.ts
:
1import { Options } from '@angular-slider/ngx-slider'; 2... 3 4@Component({...}) 5export class AppComponent { 6 value: number = 100; 7 options: Options = { 8 floor: 0, 9 ceil: 200 10 }; 11}
And in template file app.component.html
:
1<ngx-slider [(value)]="value" [options]="options"></ngx-slider>
Documentation
Full API documentation is available on official website.
Styling
An overview of how to apply your own style to the slider is described in STYLING.md.
Animations
As of v1.2.0 the slider features CSS animations of slider movement. If you prefer the previous behaviour, without animations, you can set the flag animate: false
in your slider options.
Keyboard Shortcuts
In addition to mouse/touch events, the slider can also be controlled through keyboard. The available shortcuts are:
- right/up arrow - increase by single step,
- left/down arrow - decrease by single step,
- page up - increase by 10% of slider range,
- page down - decrease by 10% of slider range,
- home - move to minimum value,
- end - move to maximum value.
Tooltips
The slider allows for customising how to implement tooltips. See TOOLTIPS.md for more information.
Known Issues
Before reporting a new bug, please look at KNOWN_ISSUES.md for a list of known problems and their workarounds. New bugs reports for these problems will not be accepted.
Bugs
You can report any bugs as Github issues.
Please describe the issue in detail pasting any relevant code, or preferrably a StackBlitz with reproduction of the problem by forking and editing this sample StackBlitz. Please also provide the version of NPM package you are using.
Changelog
For list of changes and bugfixes, see CHANGELOG.md.
Developer information
If you would like to contribute to the project, see DEVELOPERS.md.
License
The project is licensed under the MIT license.
Upgrading
For instructions on upgrading from previous (1.x) versions of the library, see UPGRADING.md.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 0/26 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 4 are checked with a SAST tool
Reason
15 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-8hc4-vh64-cxmj
- Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7
- Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx
- Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j
- Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm
- Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg
- Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p
- Warn: Project is vulnerable to: GHSA-3g92-w8c5-73pq
- Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986 / GHSA-64vr-g452-qvp3
- Warn: Project is vulnerable to: GHSA-9cwx-2883-4wfx
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
Score
2
/10
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreOther packages similar to ngx-slider-2023
@angular-slider/ngx-slider
Self-contained, mobile friendly slider component for Angular based on angularjs-slider
angularjs-slider
AngularJS slider directive with no external dependencies. Mobile friendly!.
@types/react-slider
TypeScript definitions for react-slider
ngx-color
A Collection of Color Pickers from Sketch, Photoshop, Chrome & more