RedDokia API Reference / RedDokiaSlotLifecycle
Interface: RedDokiaSlotLifecycle<TContext>
Lifecycle returned by custom DOM slot callbacks (topBar.left/right, statusBar.left/right, emptyContents).
Type Parameters
| Type Parameter | Default type |
|---|---|
TContext | RedDokiaController |
Properties
| Property | Type | Description |
|---|---|---|
unmount? | () => void | Called when the slot DOM is torn down. |
update? | (ctx) => void | Called when slot context updates. |