StaticChaynsApi
Index
Constructors
constructor
Parameters
values: any
functions: any
Returns StaticChaynsApi
Properties
addDataListener
Type declaration
Parameters
Returns () => void
Returns void
ready
Methods
getCurrentPage
Returns { id: number; siteId: string }
id: number
siteId: string
getCustomFunction
Parameters
key: string
Returns <A, O>(...args: A) => Promise<O>
Type parameters
- A: any[]
- O
Parameters
rest...args: A
Returns Promise<O>
getDevice
Returns ChaynsApiDevice
getEnvironment
Returns { buildEnvironment: Environment; runtimeEnvironment: string | RuntimeEnviroment }
buildEnvironment: Environment
runtimeEnvironment: string | RuntimeEnviroment
getLanguage
getPages
Returns Page[]
getParameters
Returns {}
[key string | symbol]: string | string[]
getSite
Returns ChaynsApiSite
getStyleSettings
Returns undefined | ChaynsStyleSettings
getUser
Returns undefined | ChaynsApiUser