src/api.ts
Implements the connection between the devtools and a theme implementation.
Properties |
Methods |
get | ||||||
get(path: string)
|
||||||
Should perform a GET request to the provided path.
Parameters :
Returns :
Promise<literal type>
|
getElementInfo | ||||||
getElementInfo(domElement: Element)
|
||||||
For the element selection mechanism to work, the devtools needs to know which Blueriq element is represented by a given DOM node. Note: this should only match for DOM nodes that actually host a Blueriq element. Ancestor DOM nodes that are nested
within a Blueriq component's view should return
Parameters :
Returns :
ElementInfo | null
|
devtoolsUrl |
devtoolsUrl:
|
Type : string
|
The URL where the devtools frontend is hosted. |
runtimeUrl |
runtimeUrl:
|
Type : string
|
The URL where the Runtime is hosted. |
targetOrigin |
targetOrigin:
|
Type : string
|
The communication between devtools and the theme happens through |