Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CustomElement

Hierarchy

Index

Methods

Optional adoptedCallback

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

    Returns void

Optional attributeChangedCallback

  • attributeChangedCallback(name: string, oldValue: string, newValue: string): 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

Optional connectedCallback

  • connectedCallback(): void
  • Called every time the element is inserted into the DOM

    Returns void

Optional disconnectedCallback

  • disconnectedCallback(): void
  • Called every time the element is removed from the DOM.

    Returns void

Generated using TypeDoc