WarUI documentation

Bind a local array of row objects

experimental

Display a plain in-memory array by mapping columns to object keys.

Live example

Expected behavior

One row per element in array order. Missing fields render as empty cells.

Source

const grid = createLocalGrid({
  rowData: products,
  columnDefs: [{ field: 'sku' }, { field: 'name', headerName: 'Name' }],
  onGridReady: ({ api }) => console.log(api.getDisplayedRowCount()),
});

API reference

GRID-A03-F01 API
KindNameTypeDescription
FunctioncreateLocalGrid—Binds rowData and columnDefs to a headless grid.
MethodgetDisplayedRowCount() => numberCounts displayed rows.