Vue RangeSelector - sliderMarker

Defines the properties of the range selector slider markers.

Type:

Object

When moving a slider, its marker displays the currently selected scale value. Use the sliderMarker object to set the required properties for the range selector slider markers. For instance, you can format the markers' text, change the text font, or make the markers invisible.

View Demo

color

Specifies the color of the slider markers.

Type:

String

Default Value: '#9B9B9B'

This property supports the following colors:

To set a custom color for the font used to display the slider markers' text, use the color property.

customizeText

Specifies a callback function that returns the text to be displayed by slider markers.

Type:

Function

Function parameters:
scaleValue:

Object

Information on the scale value.

Object structure:
Name Type Description
value

Date

|

Number

|

String

The raw value.

valueText

String

The formatted value converted to a string.

Return Value:

String

The text for the slider marker to display.

Cannot be used in themes.

NOTE
As an alternative to the function’s parameter you can use the this keyword.

View Demo

font

Specifies font properties for the text displayed by the range selector slider markers.

Type:

Object

format

Formats a value before it is displayed in a slider marker.

Type:

Format

Default Value: undefined

See the format section for details on accepted values.

View Demo

See Also

invalidRangeColor

Specifies the color used for the slider marker text when the currently selected range does not match the minRange and maxRange values.

Type:

String

Default Value: 'red'

paddingLeftRight

Specifies the empty space between the marker's left and right borders and the marker's text.

Type:

Number

Default Value: 4

paddingTopBottom

Specifies the empty space between the marker's top and bottom borders and the marker's text.

Type:

Number

Default Value: 2

placeholderHeight

Specifies the placeholder height of the slider marker.

Type:

Number

Default Value: undefined
Cannot be used in themes.

visible

Indicates whether or not the slider markers are visible.

Type:

Boolean

Default Value: true