Options
All
  • Public
  • Public/Protected
  • All
Menu

Custom Element Interface

Hierarchy

Index

Properties

Methods

Optional adoptedCallback

  • adoptedCallback(): void
  • Called when the element is adopted to a document.

    Returns void

Optional attributeChangedCallback

  • attributeChangedCallback(name: string, oldValue: string, newValue: string): void
  • Called when one of the element's observedAttributes changes.

    Parameters

    • name: string

      name of the observed attribute

    • oldValue: string

      previous value of the attribute. null if it was nonexistent

    • newValue: string

      current value of the attribute. null if removed.

    Returns void

Optional connectedCallback

  • connectedCallback(): void
  • Called when the element connects to a document, when the element has access to it's own DOM.

    Returns void

Optional disconnectedCallback

  • disconnectedCallback(): void
  • Called when the element is removed from a document.

    Returns void