map.apps Bundle APIs 4.20.0
    Preparing search index...

    The Context is available in conversion functions.

    interface Context {
        ignore(): void;
        newValue(): any;
        newValues(): any[];
        oldValue(): any;
        oldValues(): any[];
        promiseValue<T>(candidate: PromiseLike<T>): any;
        source: Bindable<PropertyName>;
        sourceName: PropertyName;
        sourceNames: readonly PropertyName[];
        target: Bindable<PropertyName>;
        targetName: PropertyName;
        targetNames: readonly PropertyName[];
        targetValue(): any;
        targetValues(): any;
    }
    Index

    Properties

    source: Bindable<PropertyName>

    The source bindable.

    sourceName: PropertyName

    The property name on the source side (for single source property).

    sourceNames: readonly PropertyName[]

    The property names on the source side (for multiple source properties).

    target: Bindable<PropertyName>

    The target bindable.

    targetName: PropertyName

    The property name on the target side (for single source property).

    targetNames: readonly PropertyName[]

    The property names on the target side (for multiple source properties).

    Methods

    • execute and return for avoiding mutation

      Returns void

    • The new property value. Provided if single source property.

      Returns any

    • The new property values. Provided if multiple source properties.

      Returns any[]

    • The old property value. Provided if single source property.

      Returns any

    • The old property values. Provided if multiple source properties.

      Returns any[]

    • Wraps a promise to signal that it should be handled as plain value.

      Type Parameters

      • T

      Parameters

      • candidate: PromiseLike<T>

        a promise.

      Returns any

      a wrapper for the promise.

    • The current property value on the target side. Provided if single source property.

      Returns any

    • The current property values on the target side. Provided if multiple source properties.

      Returns any