@augrid/react
v0.8.1
Published
React wrapper for AuGrid.
Maintainers
Readme
@augrid/react
React bindings for AuGrid —
the free, MIT-licensed, high-performance data grid. Typed component props for
every grid option and event, plus reactComponent() to use React components
as cell renderers, editors, headers, and tooltips.
▶ Live demo · Repository & docs
npm add @augrid/core @augrid/reactimport { AuGrid, reactComponent } from '@augrid/react';
<AuGrid<Row>
rowData={rows}
columnDefs={[
{ field: 'name', editable: true },
{ field: 'total', cellRenderer: reactComponent(MedalBadge) },
]}
rowSelection="multiRow"
onCellValueChanged={(e) => save(e.data)}
onGridReady={(e) => (apiRef.current = e.api)}
/>- All grid options are props; all events are
onXxxprops, fully typed. reactComponent(MyComp)bridges any custom-component slot to React with correct mount/unmount through the grid's recycling renderer.- The imperative
GridApiis available viaonGridReadyfor everything else (transactions, state, export, find, pivots).
Requires react >= 18 and the matching @augrid/core (declared as peer
dependencies). Full docs and recipes in the
repository.
MIT © Bryon Williams
