Skip to content

Commit 95e4509

Browse files
authored
Allow creation of custom labels with personalized values for min/max (ptomasroos#182)
1 parent fdf5836 commit 95e4509

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

MultiSlider.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,8 @@ export default class MultiSlider extends React.Component {
545545
<Label
546546
oneMarkerValue={this.state.valueOne}
547547
twoMarkerValue={this.state.valueTwo}
548+
minValue={this.props.min}
549+
maxValue={this.props.max}
548550
oneMarkerLeftPosition={positionOne}
549551
twoMarkerLeftPosition={positionTwo}
550552
oneMarkerPressed={this.state.onePressed}

index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ export interface MarkerProps {
2020
export interface LabelProps {
2121
oneMarkerValue: string | number;
2222
twoMarkerValue: string | number;
23+
minValue: number;
24+
maxValue: number;
2325
oneMarkerLeftPosition: number;
2426
twoMarkerLeftPosition: number;
2527
oneMarkerPressed: boolean;

0 commit comments

Comments
 (0)