Bootstrap

API portal

portal

function

portal(node, args): void | { destroy: () => void; update: (args) => void; }

Creates a portal directive, allowing to attach content to any element.

Parameters
node

SSRHTMLElement

args

PortalDirectiveArg

Returns

void | { destroy: () => void; update: (args) => void; }

the portal directive


PortalDirectiveArg

type alias

PortalDirectiveArg: { container: HTMLElement | null; insertBefore: HTMLElement | null; } | null | undefined

Represents the arguments for a portal directive.