File

modules/session-flow/src/structures/click.ts

Description

User click in app

Methods

getStringObject
getStringObject()

Return object with string params

Returns: void

Properties

route
route: string

Current route where user clicked

selectorName
selectorName: string

Selector where user clicked

time
time: Date

Time when click emitted

export class UserClick{
  /**
   * Time when click emitted
   */
  time: Date;
  /**
   * Selector where user clicked
   */
  selectorName: string;
  /**
   * Current route where user clicked
   */
  route: string;

  /**
   * Return object with string params
   */
  getStringObject(){
    let object = {};
    object['route'] = this.route;
    object['selectorName'] = this.selectorName;
    object['time'] = this.time.toISOString();
    return object;
  }
}

results matching ""

    No results matching ""