Skip to content

RedDokia API Reference / RedDokiaSlotMountHandler

Type Alias: RedDokiaSlotMountHandler ​

ts
type RedDokiaSlotMountHandler = (container, controller) => 
  | void
  | (() => void)
| RedDokiaSlotLifecycle<RedDokiaController>;

Function signature for rendering/mounting custom DOM elements into a shell slot (topBar.left/right, statusBar.left/right, or emptyContents).

Parameters ​

ParameterType
containerHTMLElement
controllerRedDokiaController

Returns ​

| void | (() => void) | RedDokiaSlotLifecycle<RedDokiaController>