ReactiveComponent
Defined in: jsEngine/api/reactive/ReactiveComponent.ts:12
A reactive component is a component that can be refreshed. This is useful for rendering dynamic content.
See API.reactive
Constructors
new ReactiveComponent()
new ReactiveComponent(
api,_render,initialArgs):ReactiveComponent
Defined in: jsEngine/api/reactive/ReactiveComponent.ts:21
Parameters
| Parameter | Type |
|---|---|
|
| |
|
| |
|
|
|
Returns
Methods
refresh()
refresh(…
args):Promise<void>
Defined in: jsEngine/api/reactive/ReactiveComponent.ts:32
Refreshes the component by rerunning the render function with the arguments passed into this function.
Parameters
| Parameter | Type | Description |
|---|---|---|
| … |
|
Returns
Promise<void>