public class |source

ClickEvent

Extends:

EventBaseClass → ClickEvent

Basic Click Event.

Member Summary

Public Members
public get
public get

Method Summary

Public Methods
public

handler(element: *)

public

replay(eventObject: *): *

Inherited Summary

From class EventBaseClass
public static
public get abstract

Should return a string with event type, needs to be overridden by subclass.

public set

replaySpeed(divider: *)

Replay speed.

public get abstract

Should return a list og tagnames which handlers should be subscribed to.

public get

Gets the timing variable

public set

Sets the replay timing variable.

public set

trackerFunc(trackerFunc: function)

set tracker function.

public set

trailFunc(trailFunc: function)

Set trail function

public

addDomReplayBorderToElement(element: HTMLElement)

add border to element.

public

executeTimingRelative(func: *, ratio: float, args: *): Promise

Executes function after timeout

public

Gets the last stored event from storage.

public abstract

handler(element: HTMLElement)

This is handler called when event is dispatched.

public

makeTrailForElement(element: HTMLElement): *

make trail for element in HTML DOM.

public

removeDomReplayBorderFromElement(element: HTMLElement)

remove border from element.

public abstract

replay(eventObject: Object)

This should be overridden by subclass, and should do the correct replay sequence for the event.

public

store(eventObject: Object): * | Promise<object>

Should be called when event is about to be stored.

public

async syncStore(eventObject: Object): Promise<object>

waits for the promise returned by this.store to be resolved.

public

track element in HTML DOM by trail.

public

updateLastStored(updates: Object): *

Merge update the last stored event, useful when recording input events and such.

Public Members

public get eventType: string source

Should return a string with event type, needs to be overridden by subclass.

Override:

EventBaseClass#eventType

public get tagnames: string[] source

Should return a list og tagnames which handlers should be subscribed to.

Override:

EventBaseClass#tagnames

Public Methods

public handler(element: *) source

This is handler called when event is dispatched. Should be overridden by subclass and store event to storage.

Override:

EventBaseClass#handler

Params:

NameTypeAttributeDescription
element*

public replay(eventObject: *): * source

This should be overridden by subclass, and should do the correct replay sequence for the event.

Override:

EventBaseClass#replay

Params:

NameTypeAttributeDescription
eventObject*

Return:

*