๐ฐSlot API
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
.assignedElements() : 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)
slot.assignedElements({flatten: true/false})
elements assigned to the slot (same as above, but only element nodes).