chem-generic-ui
v2.3.0
Published
React component library for schema-driven scientific and laboratory applications, providing dynamic form and table builders for complex data-driven interfaces.
Readme
chem-generic-ui
chem-generic-ui is a React component library for building schema-driven scientific and laboratory applications. It provides dynamic form and table builders for complex data-driven interfaces.
It is used in the Chemotion LabIMotion ecosystem for constructing structured datasets, element forms, and table-based layouts.
Project Showcase
LabIMotion
A scientific data management application built using chem-generic-ui.
Flexible Layout Designs
Different Layout Designs
- Element Details: Text fields, checkboxes, selection inputs and drag-and-drop
- Segment Details: Table-Based layout, for multiple records with drag-and-drop functionality inside tables
- Dataset Details: Styling and unit conversion
Layer grouping to manage multiple layers
Installation
The chem-generic-ui library is available as an NPM package. Install it either with NPM:
npm install --save chem-generic-uior Yarn:
yarn add chem-generic-uiHost application setup
AG Grid module registration
ag-grid-community and ag-grid-react (>=33.0.0 <34.0.0) are peer dependencies — the host application provides them. Since version 2.3.0, chem-generic-ui no longer registers AG Grid modules itself. Register them once in your application entry point, before rendering any chem-generic-ui component that contains a grid:
import { ModuleRegistry, AllCommunityModule } from 'ag-grid-community';
ModuleRegistry.registerModules([AllCommunityModule]);Without this, AG Grid throws error #200 ("unable to use … as the module is not registered") when a grid component mounts.
Support and Community
If you have questions, comments, or suggestions, the best place to share them is in the Discussions section. We welcome your feedback and participation!
