SlotElement
The HTMLSlotElement
interface of the Shadow DOM API enables access to the name and assigned nodes of an HTML slot
element.
Documentation HTMLSlotElement by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Instance Members
name: String
DOMString
: Can be used to get and set the slot's name.
assignedNodes(?options: Null<AssignedNodesOptions>): Array<Node>
Returns the sequence of elements assigned to this slot, or alternatively the slot's fallback content.
Name | Type | Default |
---|---|---|
options |
Null<AssignedNodesOptions> | (optional) |
Returns |
---|
Array<Node> |