How to use the @jsonforms/core.getUiSchema 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 / editor / src / ide.ts View on Github external
resolvedSchema => {
        this.editor.setInnerComponent(
          TreeRenderer,
          {
            uischema: getUiSchema(this._store.getState()),
            schema: resolvedSchema.resolved,
            filterPredicate: this._filterPredicate,
            labelProvider: this._labelProvider,
            imageProvider: this._imageProvider
          });
        this.editor.store = this._store;

        const exportButton = document.getElementById('export-data-button') as HTMLButtonElement;
        if (exportButton !== null) {
          const exportDialog = createExportDataDialog();
          document.body.appendChild(exportDialog);
          configureExportButton(this, exportButton, exportDialog);
        }

        // button triggering the hidden input element - only activate after schemas was loaded
        const uploadButton = document.getElementById('upload-data-button') as HTMLButtonElement;
github eclipsesource / jsonforms / packages / webcomponent / src / JsonFormsElement.tsx View on Github external
).then(resolvedSchema => {
      this._store = setupStore(
        resolvedSchema as any,
        getUiSchema(store.getState()),
        data
      );
      this.render();
    });
  }
github eclipsesource / jsonforms / packages / angular-material / example / app / app.component.ts View on Github external
setReadonly() {
    const uischema = getUiSchema(this.ngRedux.getState());
    if (this.readonly) {
      unsetReadonly(uischema);
    } else {
      setReadonly(uischema);
    }
    this.readonly = !this.readonly;
    this.ngRedux.dispatch(Actions.setUISchema(uischema));
  }
}
github eclipsesource / jsonforms / packages / material-tree-renderer / example / app-bar / dialogs / ModelSchemaDialog.tsx View on Github external
const mapStateToProps = (state: JsonFormsState, ownProps: any) => {
  const rootData = getData(state);

  return {
    rootData,
    classes: ownProps.classes,
    onClose: ownProps.onClose,
    open: ownProps.open,
    uischema: getUiSchema(state)
  };
};
github eclipsesource / jsonforms / packages / examples / src / uischema-registry.ts View on Github external
const resetServices = () => {
  const jsonforms = document.getElementsByTagName('json-forms')[0] as JsonFormsElement;
  const currentState = jsonforms.store.getState();
  jsonforms.store.dispatch({
    type: Actions.INIT,
    data,
    schema: getSchema(currentState),
    uischema: getUiSchema(currentState),
    styles: currentState.styles
  });
};
const tester = () => 5;