Interface CustomElement

interface CustomElement {
    adoptedCallback?(): void;
    attributeChangedCallback?(name, oldValue, newValue): void;
    connectedCallback?(): void;
    disconnectedCallback?(): void;
}

Hierarchy (view full)

Methods

  • The custom element has been moved into a new document (e.g. someone called document.adoptNode(el)).

    Returns void

  • Called when an observed attribute has been added, removed, updated, or replaced. Also called for initial values when an element is created by the parser, or upgraded.

    Note: only attributes listed in static observedAttributes property will receive this callback.

    Parameters

    • name: string
    • oldValue: string
    • newValue: string

    Returns void

  • Called every time the element is inserted into the DOM

    Returns void

  • Called every time the element is removed from the DOM.

    Returns void

Generated using TypeDoc