title

Specifies a title for the range selector.

Type:

Object

|

String

Use this property to set the text for the range selector title. If you need to specify the title's position on the widget, assign an object to the title property with the required title options specified. In this instance, set the title text using the text property. When title text is not specified, the widget is displayed without a title.

You can also place details on the range selector below the title. To do this, specify the subtitle configuration option.

font

Specifies font options for the title.

Type:

Object

horizontalAlignment

Specifies the widget title's horizontal position.

Type:

String

Default Value: 'center'
Accepted Values: 'right' | 'center' | 'left'

To set the title's vertical position, use the verticalAlignment option.

margin

Specifies the distance between the title and surrounding widget elements in pixels.

Type:

Number

|

Object

Default Value: 0

Use the fields of the margin object to set the required values for the left, right, top and bottom title margins separately. If you require title margins to be equal, assign a numeric value to the margin option.

placeholderSize

Specifies the height of the space reserved for the title.

Type:

Number

Default Value: undefined

subtitle

Specifies a subtitle for the widget.

Type:

Object

|

String

Use this property to set the text to be displayed as a widget subtitle (the text below the title). If you need to specify the subtitle's font, assign an object to the subtitle property with the required options specified. In this instance, set the subtitle's text using the text property.

text

Specifies text for the title.

Type:

String

Default Value: null

verticalAlignment

Specifies the widget title's position in the vertical direction.

Type:

String

Default Value: 'top'
Accepted Values: 'top' | 'bottom'

To set the title's position in the horizontal direction, use the horizontalAlignment option.