Class sap.ui.commons.RangeSliderModule: sap/ui/commons/RangeSlider

extends Slider
known direct subclasses: DateRangeSliderInternal

The interactive control is displayed either as a horizontal or a vertical line with two pointers and units of measurement. Users can move the pointers along the line to change a range with graphical support.

Deprecated API:Since version 1.38. Instead, use the sap.m.RangeSlider control.


Since: 1.8.0.
Constructor Summary
new sap.ui.commons.RangeSlider(sId?, mSettings?)Constructor for a new RangeSlider.
Events borrowed from class sap.ui.commons.Slider
Events borrowed from class sap.ui.core.Control
Method Summary
sap.ui.commons.RangeSlider.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.commons.RangeSlider with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.commons.RangeSlider.getMetadata()Returns a metadata object for class sap.ui.commons.RangeSlider.
getValue2()Gets current value of property value2.
setValue2(fValue2)Sets a new value for property value2.
Constructor Detail
new sap.ui.commons.RangeSlider(sId?, mSettings?)
Constructor for a new RangeSlider.

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.

The supported settings are:

  • Properties

In addition, all settings applicable to the base type sap.ui.commons.Slider can be used as well.

Parameters:
{string}sId? ID for the new control, generated automatically if no ID is given
{object}mSettings? Initial settings for the new control
Deprecated:
Since version 1.38. Instead, use the sap.m.RangeSlider control.
Method Detail
sap.ui.commons.RangeSlider.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.commons.RangeSlider with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.commons.Slider.extend.

Parameters:
{string}sClassName Name of the class being created
{object}oClassInfo? Object literal with information about the class
{function}FNMetaImpl? Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata
Returns:
{function} Created class / constructor function
sap.ui.commons.RangeSlider.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.commons.RangeSlider.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getValue2(): float
Gets current value of property value2.

Current second value of the slider. (Position of the second grip.)

Note: If the value is not in the valid range (between min and max) it will be changed to be in the valid range. If it is smaller than value it will be set to the same value.

Default value is 80.

Returns:
{float} Value of property value2
setValue2(fValue2): sap.ui.commons.RangeSlider
Sets a new value for property value2.

Current second value of the slider. (Position of the second grip.)

Note: If the value is not in the valid range (between min and max) it will be changed to be in the valid range. If it is smaller than value it will be set to the same value.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is 80.

Parameters:
{float}fValue2 New value for property value2
Returns:
{sap.ui.commons.RangeSlider} Reference to this in order to allow method chaining