dccRangeSlider {dashCoreComponents}R Documentation

RangeSlider component


A double slider with two handles. Used for specifying a range of numerical values.


dccRangeSlider(id=NULL, marks=NULL, value=NULL, allowCross=NULL,
className=NULL, count=NULL, disabled=NULL, dots=NULL,
included=NULL, min=NULL, max=NULL, pushable=NULL,
tooltip=NULL, step=NULL, vertical=NULL, verticalHeight=NULL,
updatemode=NULL, loading_state=NULL, persistence=NULL,
persisted_props=NULL, persistence_type=NULL)



Character. The ID of this component, used to identify dash components in callbacks. The ID needs to be unique across all of the components in an app.


List with named elements and values of type character | lists containing elements 'label', 'style'. those elements have the following types: - label (character; optional) - style (named list; optional). Marks on the slider. The key determines the position (a number), and the value determines what will show. If you want to set the style of a specific mark point, the value should be an object which contains style and label properties.


List of numerics. The value of the input


Logical. allowCross could be set as true to allow those handles to cross.


Character. Additional CSS class for the root DOM node


Numeric. Determine how many ranges to render, and multiple handles will be rendered (number + 1).


Logical. If true, the handles can't be moved.


Logical. When the step value is greater than 1, you can set the dots to true if you want to render the slider with dots.


Logical. If the value is true, it means a continuous value is included. Otherwise, it is an independent value.


Numeric. Minimum allowed value of the slider


Numeric. Maximum allowed value of the slider


Logical | numeric. pushable could be set as true to allow pushing of surrounding handles when moving an handle. When set to a number, the number will be the minimum ensured distance between handles.


Lists containing elements 'always_visible', 'placement'. those elements have the following types: - always_visible (logical; optional): determines whether tooltips should always be visible (as opposed to the default, visible on hover) - placement (a value equal to: 'left', 'right', 'top', 'bottom', 'topleft', 'topright', 'bottomleft', 'bottomright'; optional): determines the placement of tooltips see https://github.com/react-component/tooltip#api top/bottom* sets the _origin_ of the tooltip, so e.g. 'topleft' will in reality appear to be on the top right of the handle. Configuration for tooltips describing the current slider values


Numeric. Value by which increments or decrements are made


Logical. If true, the slider will be vertical


Numeric. The height, in px, of the slider if it is vertical.


A value equal to: 'mouseup', 'drag'. Determines when the component should update its value. If 'mouseup', then the slider will only trigger its value when the user has finished dragging the slider. If 'drag', then the slider will update its value continuously as it is being dragged. Only use 'drag' if your updates are fast.


Lists containing elements 'is_loading', 'prop_name', 'component_name'. those elements have the following types: - is_loading (logical; optional): determines if the component is loading or not - prop_name (character; optional): holds which property is loading - component_name (character; optional): holds the name of the component that is loading. Object that holds the loading state object coming from dash-renderer


Logical | character | numeric. Used to allow user interactions in this component to be persisted when the component - or the page - is refreshed. If 'persisted' is truthy and hasn't changed from its previous value, a 'value' that the user has changed while using the app will keep that change, as long as the new 'value' also matches what was given originally. Used in conjunction with 'persistence_type'.


List of a value equal to: 'value's. Properties whose user interactions will persist after refreshing the component or the page. Since only 'value' is allowed this prop can normally be ignored.


A value equal to: 'local', 'session', 'memory'. Where persisted user changes will be stored: memory: only kept in memory, reset on page refresh. local: window.localStorage, data is kept after the browser quit. session: window.sessionStorage, data is cleared once the browser quit.


named list of JSON elements corresponding to React.js properties and their values


if (interactive() && require(dash)) {

    app <- Dash$new()

          count = 1,
          min = -5,
          max = 10,
          step = 0.5,
          value = list(-3, 7),
          marks = as.list(
            setNames(-5:10, as.character(-5:10))


[Package dashCoreComponents version 1.10.0 Index]