KEMBAR78
CustomElement | Web utility
Web utility
    Preparing search index...

    Interface CustomElement

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

    Hierarchy (View Summary)

    Index

    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