2.1.0 • Published 12 months ago

ngx-bootstrap-slider v2.1.0

Weekly downloads
1,869
License
MIT
Repository
github
Last release
12 months ago

This is an Angular component for the popular and very flexible seiyria/bootstrap-slider (https://github.com/seiyria/bootstrap-slider).

Some demos are available here: https://seiyria.com/bootstrap-slider/

Install

npm install ngx-bootstrap-slider
Angular Versionngx-bootstrap-slider Version
Until v121.9.0
From v132.0.0

Setup

Include the module

Import the module in your app.module.ts:

import { NgxBootstrapSliderModule } from 'ngx-bootstrap-slider';

Add the module to the imports in your app.module.ts:

imports: [
  ...
  NgxBootstrapSliderModule,
  ...
]

Configure the Angular CLI

Add the CSS and JavaScript files to your angular.json:

"styles": [
  "node_modules/bootstrap-slider/dist/css/bootstrap-slider.min.css"
],
"scripts": [
  "node_modules/bootstrap-slider/dist/bootstrap-slider.min.js"
]

Getting started

Add a slider element to your component:

<mv-slider [(value)]="value" [min]="1" [max]="100" [enabled]="enabled" (change)="change()"></mv-slider>

Attributes

All available properties are described here: https://github.com/seiyria/bootstrap-slider#options

The names have been unified to camel-casing (e.g. [ticksLabels] not [ticks_labels]).

Events

All available events are described here: https://github.com/seiyria/bootstrap-slider#events

Currently, only the following events are implemented:

  • slide
  • slideStart
  • slideStop
  • change
2.1.0

12 months ago

2.0.0

12 months ago

1.8.1

5 years ago

1.9.0

5 years ago

1.8.0

5 years ago

1.7.0

7 years ago

1.6.0

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago