You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -63,7 +65,8 @@ class App extends React.Component{
63
65
onChangeComplete={this.changeCompleteHandler}
64
66
onChange={this.timeChangeHandler}
65
67
step={15}
66
-
value={this.state.value}/>
68
+
value={this.state.value}
69
+
formatLabel={(value) => {`${value}`}}/>
67
70
</div>);
68
71
}
69
72
};
@@ -108,6 +111,9 @@ The amount of time, in minutes, increment/decrement when time range change.
108
111
#### value: Range
109
112
Set the current value for your component
110
113
114
+
#### formatLabel: Function(Value, Type): void
115
+
By default, value labels are displayed as plain numbers. If you want to change the display, you can do so by passing in a function. The function can return something different, i.e.: append a unit, reduce the precision of a number.
116
+
111
117
## Defaults
112
118
* disabled: `false`
113
119
* draggableTrack: `false`
@@ -116,4 +122,4 @@ Set the current value for your component
0 commit comments