Function bindToValue

  • Binds a property to a value in an object. If the object is a string, it is used as a property name in this.

    Parameters

    • __namedParameters: {
          invProcessVal?: ((val) => any);
          key?: ValOrFunc<string | symbol>;
          obj?: any;
          onChange?: string | ((...args) => any);
          processVal?: ((newVal) => any);
      }
      • Optional invProcessVal?: ((val) => any)
          • (val): any
          • Parameters

            • val: any

            Returns any

      • Optional key?: ValOrFunc<string | symbol>
      • Optional obj?: any
      • Optional onChange?: string | ((...args) => any)
      • Optional processVal?: ((newVal) => any)
          • (newVal): any
          • Parameters

            • newVal: any

            Returns any

    Returns PropertyDecorator

Generated using TypeDoc