src/lib/markup-kit/slider/slider/slider.component.ts
Component for a slider that allows selecting a range of values.
<mefdev-slider
[disabled]="false"
[range] = "{min: 1, max: 10000}"
[id]= "'slider1'"
(valueChange)="onChildValueChange($event)"
></mefdev-slider>
selector | mefdev-slider |
styleUrls | ./slider.component.scss |
templateUrl | ./slider.component.html |
Properties |
Methods |
Inputs |
Outputs |
Accessors |
disabled |
Type : boolean
|
Default value : false
|
Property indicating whether the component is disabled.
|
id |
Type : string
|
Unique id for each slider. Use it, if u need more than one slider independent from another on the same page.
|
range |
Type : literal type
|
Input Object {min, max} container of the slider
|
onMaxValueChange |
onMaxValueChange()
|
Method to handle changes in the maximum value.
Converts a string to a number and removes all non-numeric characters.
Then, emits the
Returns :
void
|
onMinValueChange |
onMinValueChange()
|
Method to handle changes in the minimum value.
Converts a string to a number and removes all non-numeric characters.
Then, emits the
Returns :
void
|
onValueChange |
onValueChange()
|
Method called when the values of the slider change.
Emits the
Returns :
void
|
maxValue |
Type : number
|
Default value : this.range.max
|
The maximum value of the slider. |
minValue |
Type : number
|
Default value : this.range.min
|
The minimum value of the slider. |
range | ||||||
getrange()
|
||||||
setrange(range: literal type)
|
||||||
Input Object {min, max} container of the slider
Parameters :
Returns :
void
|