# Interface: TimeRangeComponent

# Hierarchy

# Table of contents

# Properties

# Methods

# Properties

# el

el: HTMLElement

Compiled Component's element from passed domString parameter.

# Inherited from

Component.el


# wrapperEl

wrapperEl: HTMLElement

Component's wrapper element.

# Inherited from

Component.wrapperEl

# Methods

# disable

disable(): void

# Returns

void

# Inherited from

Component.disable


# enable

enable(): void

# Returns

void

# Inherited from

Component.enable


# getTimeRange

getTimeRange(): TimeRange

Returns a selected range of time shown on UI in seconds.

# Returns

TimeRange


# getValue

getValue(dataAttr): string

Gets the value of innerHtml from element which matched by @param dataAttr.

# Parameters

Name Type Description
dataAttr string the name of the data attribute to match the component's element. <div data-test-value>Test value</div> component.getValue("test-value") // returns "Test value"

# Returns

string

# Inherited from

Component.getValue


# hide

hide(): void

Hides time range controls from player's timeline.

# Returns

void

# Overrides

Component.hide


# isVisible

isVisible(): boolean

Returns true if component is visible, false otherwise.

# Returns

boolean

# Inherited from

Component.isVisible


# onClick

onClick(event?): void

On component click handler function

# Parameters

Name Type
event? Event

# Returns

void

# Inherited from

Component.onClick


# setTimeRange

setTimeRange(range): void

Selects the given time range on UI in TimeRangeComponent.

Note: the duration of the shown "base range" is constrained up to 2 minutes.

# Parameters

Name Type
range TimeRange

# Returns

void


# setValue

setValue(dataAttr, value): void

Replaces the value of innerHtml from element which matched by @param dataAttr.

# Parameters

Name Type Description
dataAttr string the name of the data attribute to match the component's element. <div data-test-value>Test value</div> component.setValue("test-value", "Replaced") // Will replace the text in div to "Replaced" text.
value any -

# Returns

void

# Inherited from

Component.setValue


# show

show(): void

Shows time range controls on player's timeline.

# Returns

void

# Overrides

Component.show


# toggle

toggle(): void

Toggles time range controls.

# Returns

void


# updateDom

updateDom(domString): void

Updates components DOM with provided domString parameter.

# Parameters

Name Type
domString string

# Returns

void

# Inherited from

Component.updateDom