How to use the @jsonforms/core.Actions.update function in @jsonforms/core

To help you get started, we’ve selected a few @jsonforms/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github eclipsesource / jsonforms / packages / angular-material / src / controls / autocomplete.renderer.ts View on Github external
onSelect(ev: MatAutocompleteSelectedEvent) {
    const path = composeWithUi(this.uischema as ControlElement, this.path);
    this.shouldFilter = false;
    this.ngRedux.dispatch(Actions.update(path, () => ev.option.value));
    this.triggerValidation();
  }
github eclipsesource / jsonforms / packages / vanilla / src / additional / tree / TreeRenderer.tsx View on Github external
return () => {
      if  (isNotTuple(schema)) {
        dispatch(
          Actions.update(
            path,
            data => {
              const clone = data.slice();
              clone.push({});

              return clone;
            }
          )
        );
      }
    };
  }
github eclipsesource / jsonforms / packages / editor / src / ide.ts View on Github external
set data(data: Object) {
    this._store.dispatch(Actions.update('', () => data));
  }
github eclipsesource / jsonforms / packages / material-tree-renderer / src / tree / TreeWithDetailRenderer.tsx View on Github external
return () => {
      if (isNotTuple(schema)) {
        dispatch(
          Actions.update(path, data => {
            const clonedData = data.slice();
            clonedData.push({});

            return clonedData;
          })
        );
      }
    };
  }
github eclipsesource / jsonforms / packages / material-tree-renderer / example / app-bar / EditorBar.tsx View on Github external
updateRootData(data: Object) {
    dispatch(Actions.update('', () => data));
  }
});
github eclipsesource / jsonforms / packages / example / src / util.tsx View on Github external
onClick={() => {
                  dispatch(Actions.update('toggleTopLayout', bool => !bool));
                }}
              >
github eclipsesource / jsonforms / packages / example / src / util.tsx View on Github external
onClick={() => {
                  dispatch(Actions.update('toggleBottomLayout', bool => !bool));
                }}
              >