Skip to content

Commit 74a30a9

Browse files
authored
Merge pull request #3445 from enioarz/feature-add-reverse-slider
Added API to reverse direction of slider
2 parents f6f80dd + c1bd31c commit 74a30a9

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
1111
- [#3397](https://github.com/plotly/dash/pull/3397) Add optional callbacks, suppressing callback warning for missing component ids for a single callback.
1212
- [#3424](https://github.com/plotly/dash/pull/3424) Adds support for `Patch` on clientside callbacks class `dash_clientside.Patch`, as well as supporting side updates, eg: (Running, SetProps).
1313
- [#3347](https://github.com/plotly/dash/pull/3347) Added 'api_endpoint' to `callback` to expose api endpoints at the provided path for use to be executed directly without dash.
14+
- [#3445](https://github.com/plotly/dash/pull/3445) Added API to reverse direction of slider component.
1415
- [#3465](https://github.com/plotly/dash/pull/3465) Plotly cloud integrations, add devtool API, placeholder plotly cloud CLI & publish button, `dash[cloud]` extra dependencies.
1516

1617
## Fixed

components/dash-core-components/src/components/Slider.react.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ Slider.propTypes = {
156156
*/
157157
verticalHeight: PropTypes.number,
158158

159+
/**
160+
* If the value is true, it means the component is rendered reverse.
161+
*/
162+
reverse: PropTypes.bool,
163+
159164
/**
160165
* Additional CSS class for the root DOM node
161166
*/
@@ -208,6 +213,7 @@ Slider.defaultProps = {
208213
persisted_props: ['value'],
209214
persistence_type: 'local',
210215
verticalHeight: 400,
216+
reverse: false,
211217
};
212218

213219
export const propTypes = Slider.propTypes;

components/dash-core-components/src/fragments/Slider.react.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const sliderProps = [
2727
'included',
2828
'tooltip',
2929
'vertical',
30+
'reverse',
3031
'id',
3132
];
3233

0 commit comments

Comments
 (0)