🔰Slot API
.assignedElements() :
Element[]
node.assignedSlotthe<slot>element that thenodeis assigned to.slot.assignedNodes({flatten: true/false})nodes assigned to the slot. (flatten = falseby 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).
Last updated
Was this helpful?