How to use the @jsonforms/core.Actions.registerUISchema 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 / coffee-editor / web / coffee-editor-extension / src / browser / coffee-editor.ts View on Github external
};

  const store: JsonFormsStore = createStore(
    combineReducers({
        jsonforms: jsonformsReducer(
        )
      }
    ),
    {
      ...jsonforms
    }
  );

  store.dispatch(Actions.init({}, coffeeSchema, uischema));
  store.dispatch(Actions.registerUISchema((schema => schema['$id']==='#controlunit'?100:-1),controlUnitView));
  store.dispatch(Actions.registerUISchema((schema => schema['$id']==='#machine'?100:-1),machineView));

  return store;
};
github eclipsesource / coffee-editor / web / coffee-editor-extension / src / browser / coffee-editor.ts View on Github external
}
  };

  const store: JsonFormsStore = createStore(
    combineReducers({
        jsonforms: jsonformsReducer(
        )
      }
    ),
    {
      ...jsonforms
    }
  );

  store.dispatch(Actions.init({}, coffeeSchema, uischema));
  store.dispatch(Actions.registerUISchema((schema => schema['$id']==='#controlunit'?100:-1),controlUnitView));
  store.dispatch(Actions.registerUISchema((schema => schema['$id']==='#machine'?100:-1),machineView));

  return store;
};
github eclipsesource / jsonforms / packages / material-tree-renderer / example / index.ts View on Github external
detailSchemata.forEach(({ tester, uischema: detailedUiSchema }) =>
  store.dispatch(Actions.registerUISchema(tester, detailedUiSchema))
);
github eclipsesource / jsonforms / packages / examples / src / nestedArrays.ts View on Github external
export const registerNestedArrayUISchema = (dispatch: Dispatch) => {
  dispatch(Actions.registerUISchema(nestedArrayTester, nestedArrayLayout));
};
export const unregisterNestedArrayUISchema = (
github eclipsesource / jsonforms / packages / angular-material / example / app / app.module.ts View on Github external
type: 'Control',
          scope: '#/properties/buyer/properties/email'
        },
        {
          type: 'Control',
          scope: '#/properties/status'
        }
      ]
    };
    const itemTester: UISchemaTester = (_schema, schemaPath, _path) => {
      if (schemaPath === '#/properties/warehouseitems/items') {
        return 10;
      }
      return -1;
    };
    ngRedux.dispatch(Actions.registerUISchema(itemTester, uiSchema));
  }
}
github eclipsesource / jsonforms / packages / examples / src / 1220.ts View on Github external
export const registerIssue1220UISchema = (dispatch: Dispatch) => {
  dispatch(Actions.registerUISchema(nestedArrayTester, detail_uischema));
};
export const unregisterIssue1220UISchema = (dispatch: Dispatch) => {