Abstraction over value getter and setter for a group of DOM elements.

interface ElementsValueAccessor {
    get(elements: readonly any[]): any;
    set(elements: readonly any[], value: any): void;
}

Methods

Methods

  • Retrieves value from elements that produce value for the field.

    Parameters

    • elements: readonly any[]

      The array of referenced elements, never empty.

    Returns any

    The value that elements represent.

  • Sets value to elements controlled by the field.

    Parameters

    • elements: readonly any[]

      The array of referenced elements, never empty.

    • value: any

      The value to assign to elements.

    Returns void