portal(
node
,args
):void
| {destroy
: () =>void
;update
: (args
) =>void
; }
Creates a portal directive, allowing to attach content to any element.
void
| { destroy
: () => void
; update
: (args
) => void
; }
the portal directive
PortalDirectiveArg: {
container
:HTMLElement
|null
;insertBefore
:HTMLElement
|null
; } |null
|undefined
Represents the arguments for a portal directive.