rangeType

Specifies the display mode for the Range Slider. This is equivalent to selecting a data type in the ‘Options’ panel of the Advanced tab in the ‘Properties’ dialog box.

rangeSliderRangeType

Type

Style Constant object

StyleConstant.NUMBER
StyleConstant.YEAR
StyleConstant.MONTH
StyleConstant.DAY

Example

Single-value Range Slider
RangeSlider1.composite = false;
RangeSlider1.query = 'Sales';
RangeSlider1.fields = ['Date'];
RangeSlider1.rangeType = StyleConstant.MONTH;

Either syntax below can be used in component script:

rangeType                  // unqualified
RangeSlider1.rangeType     // qualified

For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required.