Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ElmRef<T>

The ElmRef class represents a reference to the element virtual node. Such objects can be created and passed to the ref property of an element. After the element is rendered the object can be used to schedule updates to the element directly - that is, without updating the component that rendered the element. This, for example, can be used to update properties of the element without causing re-rendering of its children.

Type parameters

  • T: Element

Hierarchy

Index

Constructors

Accessors

Methods

Constructors

constructor

Accessors

r

  • Get accessor for the reference value

    Returns IElmVN<T>

  • Set accessor for the reference value

    Parameters

    Returns void

Methods

addListener

  • Adds a callback that will be invoked when the value of the reference changes.

    Parameters

    Returns void

removeListener

  • Removes a callback that was added with addListener.

    Parameters

    Returns void

Generated using TypeDoc