Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
typealias AttributeChangedCallback = (name: String, oldValue: JsAny?, newValue: JsAny?) -> Unit
Link copied to clipboard
interface CustomElement
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The CustomElementRegistry interface provides methods for registering custom elements and querying registered elements.

Link copied to clipboard

The CustomStateSet interface of the Document Object Model stores a list of states for an autonomous custom element, and allows states to be added and removed from the set.

Link copied to clipboard
Link copied to clipboard

The ElementInternals interface of the Document Object Model gives web developers a way to allow custom elements to fully participate in HTML forms.

Link copied to clipboard

The HTMLSlotElement interface of the Shadow DOM API enables access to the name and assigned nodes of an HTML slot element.

Link copied to clipboard

The HTMLTemplateElement interface enables access to the contents of an HTML template element.

Link copied to clipboard

The ShadowRoot interface of the Shadow DOM API is the root node of a DOM subtree that is rendered separately from a document's main DOM tree.

Link copied to clipboard
interface ShadowRootInit
Link copied to clipboard
sealed interface ShadowRootMode
Link copied to clipboard
sealed interface SlotAssignmentMode
Link copied to clipboard
interface Slottable

Properties

Link copied to clipboard
Link copied to clipboard

The customElements read-only property of the Window interface returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements.

Link copied to clipboard

Functions

Link copied to clipboard

The define() method of the CustomElementRegistry interface adds a definition for a custom element to the custom element registry, mapping its name to the constructor which will be used to create it.

Link copied to clipboard

The getName() method of the CustomElementRegistry interface returns the name for a previously-defined custom element.

Link copied to clipboard

The whenDefined() method of the CustomElementRegistry interface returns a Promise that resolves when the named element is defined.