Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "lib/updating-element"

Use this module if you want to create your own base class extending UpdatingElement.

Index

Type aliases

PropertyValues

PropertyValues<T>: keyof T extends PropertyKey ? Map<keyof T, unknown> : never

Map of changed properties with old values. Takes an optional generic interface corresponding to the declared element properties.

Type parameters

  • T

Functions

Const notEqual

  • notEqual(value: unknown, old: unknown): boolean
  • Change function that returns true if value is different from oldValue. This method is used as the default for a property's hasChanged function.

    Parameters

    • value: unknown
    • old: unknown

    Returns boolean

Object literals

Const defaultConverter

defaultConverter: object

fromAttribute

  • fromAttribute(value: string | null, type?: unknown): any

toAttribute

  • toAttribute(value: unknown, type?: unknown): unknown

Generated using TypeDoc