Skip to main content

StaticChaynsApi

Index

Constructors

constructor

Properties

addDataListener

addDataListener: (cb: DataChangeCallback) => () => void

Type declaration

ready

ready: Promise<void>

Methods

getCurrentPage

  • getCurrentPage(): { id: number; identifier?: string | number; siteId: string }
  • Returns { id: number; identifier?: string | number; siteId: string }

    • id: number
    • optionalidentifier?: string | number
    • siteId: string

getCustomFunction

  • getCustomFunction(key: string): (...args: any[]) => Promise<any>
  • Parameters

    • key: string

    Returns (...args: any[]) => Promise<any>

      • (...args: any[]): Promise<any>
      • Parameters

        • rest...args: any[]

        Returns Promise<any>

getDevice

getEnvironment

getLanguage

getPages

getParameters

  • getParameters(): {}
  • Returns {}

    • [key string | symbol]: string | string[]

getSite

getStyleSettings

getUser