Box
Map
Vue
A newer version of this page is available. Switch to the current version.

JavaScript/jQuery RangeSelector - scale.marker.label

Defines the properties that can be set for the text that is displayed by the scale markers.

Type:

Object

customizeText

Specifies a callback function that returns the text to be displayed in scale markers.

Type:

Function

Function parameters:
markerValue:

Object

Information on the marker value.

Object structure:
Name Type Description
value

Date

|

Number

The raw value.

valueText

String

The formatted value converted to a string.

Return Value:

String

The text for the label to display.

Cannot be used in themes.

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

format

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

Type:

Format

Default Value: undefined

See the format section for details on accepted values.

See Also