FormModel.js
/**
   * Create a one way data binding between the selected component and the state.
   * It binds against a different structure defined by the adapter string.
   * Can use a converter function if needed
   *
   * @param {string} adapter Array describing the object keys for the adapter
   * @param {function} [converter=undefined] An optional function to convert the before setting it
   */
Create a one way data binding between the selected component and the state.
It binds against a different structure defined by the adapter string.
Can use a converter function if needed

@param {string} adapter Array describing the object keys for the adapter
@param {function} [converter=undefined] An optional function to convert the before setting it
Create a one way data binding between the selected component and the state . It binds against a different structure defined by the adapter string . Can use a converter function if needed @param { string } adapter Array describing the object keys for the adapter @param { function } [ converter = undefined ] An optional function to convert the before setting it
oneWayAdapter(adapter, converter = undefined) {
    if (!converter) {
      return {
        [adapter]: this.set,
      };
    } else {
      return {
        [adapter]: (event) =>
          this.set({ target: { type: "custom" } }, () =>
            converter(event, _.get(this._target.state, this._property)),
          ),
      };
    }
  }
oneWayAdapter ( adapter , converter = undefined ) { if ( ! converter ) { return { [ adapter ] : this . set , } ; } else { return { [ adapter ] : ( event ) => this . set ( { target : { type : "custom" } } , ( ) => converter ( event , _ . get ( this . _target . state , this . _property ) ) , ) , } ; } }
Create a one way data binding between the selected component and the state.
Create a one way data binding between the selected component and the state .