Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace utilities

Various utilities used throughout the application.

Index

Type aliases

VariableError: null | string | { code?: string | number; message?: string; response?: { data?: { error?: string }; statusText?: string } }

Functions

  • handleAnchorClick(event: MouseEvent<HTMLAnchorElement, MouseEvent>): boolean | void
  • External links clicked within native apps should be opened within the device's default browser.

    Parameters

    • event: MouseEvent<HTMLAnchorElement, MouseEvent>

    Returns boolean | void

  • openUrl(url: string, target?: string, features?: string): boolean | void
  • Within web browsers, the url is assigned to window.location.href if there is no target, or window.open is called if there is a target.

    This utility function is a placeholder and should be updated when app platforms are added.

    Parameters

    • url: string
    • Optional target: string
    • Optional features: string

    Returns boolean | void

  • timeAgo(time: string | number, abbreviate?: boolean): string
  • Returns how long ago some time (date) was.

    Parameters

    • time: string | number
    • Optional abbreviate: boolean

    Returns string

  • toQueryString(object: JSONObject): string

Generated using TypeDoc