Slot API
Last updated
Was this helpful?
Last updated
Was this helpful?
: Element[]
node.assignedSlot
the <slot>
element that the node
is assigned to.
slot.assignedNodes({flatten: true/false})
nodes assigned to the slot. (flatten = false
by default, if set totrue
, then it looks more deeply into the flattened DOM)
elements assigned to the slot (same as above, but only element nodes).