To create a client row source, use the useClientDataSource hook exported by LyteNyte Grid.
This hook accepts parameters that configure the client source view.
Prop
The row data available on the client.
The aggregation configuration for the client row source.
Predefined aggregation functions that can be referenced by name.
The row data for rows pinned to the bottom of the viewport.
The filter configuration for the client row source.
The group configuration for the client row source.
A group row ID generator. This function must return a unique ID for every group row.
The having filter configuration used to filter group rows.
The label filter configuration used to filter rows by label.
A leaf row ID generator. This function must return a unique ID for every data item provided to the client row source.
An event callback that fires when the pivot state changes.
An event callback that fires when row data is updated.
A callback invoked whenever a row is expanded or collapsed.
An event callback that fires when rows are added to the grid.
An event callback that fires when rows are deleted from the grid.
A callback invoked whenever a row is selected or deselected.
Whether the client row source applies existing row filters before creating pivot columns.
A function that modifies generated pivot columns before the grid displays them.
Whether to include a grand totals row at the top or bottom of the viewport. Use null to disable the grand totals row.
Whether the client row source operates in pivot mode.
The pivot configuration for the client row source.
The pivot state applied to generated pivot columns.
The behavior the client row source uses when collapsing groups with a single child.
The default row group expansion behavior. If a number is provided, row groups with a depth less than or equal to the number are expanded.
The expansion state of tree nodes. Provide this value to control which nodes
are expanded or collapsed.
Whether the last row group node is expandable.
The row selection state used by the TreeView component. If not provided, the
TreeView component uses internal selection state. Provide this value to control selection
externally.
Additional row selection IDs to retain even if they do not correspond to rows in the data.
Row IDs that should not be considered selectable.
A custom key that resets row selection when the key changes.
Whether the client row source uses isolated row selection instead of linked selection.
The sort configuration for the client row source.
The row data for rows pinned to the top of the viewport.