Skip to content

Commit 41f155c

Browse files
committed
Merge pull request plotly#676 from plotly/slider-tooltip-desc
descriptions for (range)slider tooltip props
1 parent a8c3b00 commit 41f155c

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

Diff for: packages/dash-core-components/src/components/RangeSlider.react.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ RangeSlider.propTypes = {
175175
*/
176176
pushable: PropTypes.oneOfType([PropTypes.bool, PropTypes.number]),
177177

178+
/**
179+
* Configuration for tooltips describing the current slider values
180+
*/
178181
tooltip: PropTypes.exact({
179182
/**
180183
* Determines whether tooltips should always be visible
@@ -185,8 +188,8 @@ RangeSlider.propTypes = {
185188
/**
186189
* Determines the placement of tooltips
187190
* See https://github.com/react-component/tooltip#api
188-
* top/bottom{*} sets the _origin_ of the tooltip, so e.g. `topLeft` will
189-
* in reality appear to be on the top right of the handle
191+
* top/bottom{*} sets the _origin_ of the tooltip, so e.g. `topLeft`
192+
* will in reality appear to be on the top right of the handle
190193
*/
191194
placement: PropTypes.oneOf([
192195
'left',

Diff for: packages/dash-core-components/src/components/Slider.react.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ Slider.propTypes = {
156156
*/
157157
max: PropTypes.number,
158158

159+
/**
160+
* Configuration for tooltips describing the current slider value
161+
*/
159162
tooltip: PropTypes.exact({
160163
/**
161164
* Determines whether tooltips should always be visible
@@ -166,8 +169,8 @@ Slider.propTypes = {
166169
/**
167170
* Determines the placement of tooltips
168171
* See https://github.com/react-component/tooltip#api
169-
* top/bottom{*} sets the _origin_ of the tooltip, so e.g. `topLeft` will
170-
* in reality appear to be on the top right of the handle
172+
* top/bottom{*} sets the _origin_ of the tooltip, so e.g. `topLeft`
173+
* will in reality appear to be on the top right of the handle
171174
*/
172175
placement: PropTypes.oneOf([
173176
'left',

0 commit comments

Comments
 (0)