Class sap.m.RangeSliderModule: sap/m/RangeSlider

extends Slider

A range slider is a user interface control that enables the user to select a value range in a predifined numerical interval.


Since: 1.38.
Constructor Summary
new sap.m.RangeSlider(sId?, mSettings?)Constructor for a new sap.m.RangeSlider.
Events borrowed from class sap.m.Slider
Events borrowed from class sap.ui.core.Control
Method Summary
sap.m.RangeSlider.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.m.RangeSlider with name sClassName and enriches it with the information contained in oClassInfo.
sap.m.RangeSlider.getMetadata()Returns a metadata object for class sap.m.RangeSlider.
getInputsAsTooltips()Gets current value of property inputsAsTooltips.
getRange()Gets current value of property range.
setInputsAsTooltips(bInputsAsTooltips)Sets a new value for property inputsAsTooltips.
setRange(sRange)Sets a new value for property range.
Constructor Detail
new sap.m.RangeSlider(sId?, mSettings?)
Constructor for a new sap.m.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:

In addition, all settings applicable to the base type sap.m.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.
Method Detail
sap.m.RangeSlider.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.m.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.m.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.m.RangeSlider.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.m.RangeSlider.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getInputsAsTooltips(): boolean
Gets current value of property inputsAsTooltips.

Indicates whether an Input fields should be used as tooltips for the handles.

Default value is false.

Returns:
{boolean} Value of property inputsAsTooltips
getRange(): float[]
Gets current value of property range.

Determines the range in which the user can select values.

If the value is lower/higher than the allowed minimum/maximum, a warning message will be output to the console.

Default value is ???.

Returns:
{float[]} Value of property range
setInputsAsTooltips(bInputsAsTooltips): sap.m.RangeSlider
Sets a new value for property inputsAsTooltips.

Indicates whether an Input fields should be used as tooltips for the handles.

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

Default value is false.

Parameters:
{boolean}bInputsAsTooltips New value for property inputsAsTooltips
Returns:
{sap.m.RangeSlider} Reference to this in order to allow method chaining
setRange(sRange): sap.m.RangeSlider
Sets a new value for property range.

Determines the range in which the user can select values.

If the value is lower/higher than the allowed minimum/maximum, a warning message will be output to the console.

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

Default value is ???.

Parameters:
{float[]}sRange New value for property range
Returns:
{sap.m.RangeSlider} Reference to this in order to allow method chaining