WarUI documentation

Shared configuration contract

experimental

One serializable grid configuration with validation and per-adapter bindings.

Live example

Expected behavior

Editing the JSON re-renders the grid. Switching tabs keeps the same grid. An invalid config shows the same error codes in every adapter.

Source

const config = { schemaVersion: 1, columns, rowData, defaultColDef: { width: 120 } };
const result = validateConfig(config);
if (result.valid) createGridFromConfig(config);

API reference

GRID-A02-F01 API
KindNameTypeDescription
FunctionvalidateConfig—Returns errors, warnings and function-valued key paths.
FunctioncreateGridFromConfig—Checks the schema version and creates a grid.
ConstantconfigSchemaVersion—The supported schema version.