Skip to main content

SlotHostNode

interface

A node that can host named slots, implemented by ElementNode and DecoratorNode. The map is allocated lazily (null until the first $setSlot) since most nodes have none. Declaring this off the base LexicalNode is what lets $setSlot / $removeSlot reject a non-host at compile time.

interface SlotHostNode

Import

import { SlotHostNode } from '@modular/sdk/editor';