Class: TimeSlider

TimeSlider(props)

The TimeSlider

Constructor

new TimeSlider(props)

The constructor.

Parameters:
Name Type Description
props Object

The properties.

Source:

Extends

  • React.Component

Methods

convert(val) → {Array|Number}

Convert a value to unix timestamps.

Parameters:
Name Type Description
val Array | String

the input value(s)

Source:
Returns:

the converted value(s)

Type
Array | Number

convertTimestamps() → {Object}

Converts the various input strings to unix timestamps.

Source:
Returns:

the converted values

Type
Object

formatTimestamp(unix) → {String}

Formats a timestamp for user display.

Parameters:
Name Type Description
unix Number

unix timestamps

Source:
Returns:

the formatted timestamps

Type
String

render()

The render function.

Source:

valueUpdated(value)

Called when the value(s) are changed. Converts the value(s) back to ISO timestrings.

Parameters:
Name Type Description
value Array | Number

the new value

Source: