FormModel.js
/**
   * Create a one way data binding between the selected component and the state.
   * Binds value.
   * Can use a converter function if needed
   *
   * @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.
Binds value.
Can use a converter function if needed

@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 . Binds value . Can use a converter function if needed @param { function } [ converter = undefined ] An optional function to convert the before setting it
oneWay(adapter = undefined) {
    if (!adapter) {
      return {
        onChange: this.set,
      };
    } else {
      return {
        onChange: (event) => this.set({ target: { type: "custom" } }, () => adapter(event)),
      };
    }
  }
oneWay ( adapter = undefined ) { if ( ! adapter ) { return { onChange : this . set , } ; } else { return { onChange : ( event ) => this . set ( { target : { type : "custom" } } , ( ) => adapter ( event ) ) , } ; } }
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 .