maquette
    Preparing search index...

    Interface Mapping<Source, Target>

    Keeps an array of result objects synchronized with an array of source objects. See Working with arrays.

    Mapping provides a map function that updates its results. The map function can be called multiple times and the results will get created, removed and updated accordingly. A Mapping can be used to keep an array of components (objects with a render method) synchronized with an array of data. Instances of Mapping can be created using createMapping.

    interface Mapping<Source, Target> {
        results: Target[];
        map(newSources: Source[]): void;
    }

    Type Parameters

    • Source

      The type of source elements. Usually the data type.

    • Target

      The type of target elements. Usually the component type.

    Index

    Properties

    Methods

    Properties

    results: Target[]

    The array of results. These results will be synchronized with the latest array of sources that were provided using map.

    Methods