slot property

String get slot

The slot property of the Element interface returns the name of the shadow DOM slot the element is inserted in.

A slot is a placeholder inside a web component that users can fill with their own markup (see Using templates and slots for more information).

Implementation

external String get slot;
set slot (String value)

Implementation

external set slot(String value);