Skip to content

RedDokia API Reference / RedDokiaSlotLifecycle

Interface: RedDokiaSlotLifecycle<TContext> ​

Lifecycle returned by custom DOM slot callbacks (topBar.left/right, statusBar.left/right, emptyContents).

Type Parameters ​

Type ParameterDefault type
TContextRedDokiaController

Properties ​

PropertyTypeDescription
unmount?() => voidCalled when the slot DOM is torn down.
update?(ctx) => voidCalled when slot context updates.