Sliders
pgSliders is a fork of NG-ZORRO implementation of drag slider. Initial credits go to the author
Importing
First import it to your app module or any submodule as you wish
How to use
Basic Slider with tooltip
API
parameter | Description | Types of | Defaults |
Range | Start the double slider mode when adding this property | attribute | - |
Min | Minimum value | Number | 0 |
Max | Maximum | Number | 100 |
Step | Step size. The value must be greater than 0 and can be divisible by (max - min). When | Number | 1 |
Marks | Tick mark. key must be of type | object | { number: string|HTML } or { number: { style: object, label: string|HTML } } |
Dots | Whether it can only be dragged onto the scale | Boolean | false |
of the Model | Set/get the current value. When | number|number[] | |
DefaultValue | Set the initial value. When | number|number[] | 0 or [0, 0] |
Included | Whether it is included. | Boolean | true |
Disabled | Whether to disable. Value | Boolean | false |
Vertical | Display vertically. When this property is added, the Slider is in the vertical direction. | attribute | - |
OnAfterChange | And | Function(value) | no |
TipFormatter | Slider will pass the current value | Function(value) | null | (value) => value |
Last updated