API Reference
API Overview
Browse the full API reference for @gp-grid/react with details on every component, prop, event, and helper exported by the React integration package today.
Complete API documentation for @gp-grid/react.
Grid Props
All props accepted by the Grid component
Column Definition
Configure individual columns
Data Sources
Client-side and server-side data handling
Events
Grid instructions and events
Exports
The @gp-grid/react package exports the following:
// Component
import { Grid } from "@gp-grid/react";
// Types
import type {
GridProps,
GridRef,
ColumnDefinition,
CellDataType,
CellValue,
CellPosition,
CellRange,
SortDirection,
SortModel,
FilterModel,
DataSource,
DataSourceRequest,
DataSourceResponse,
MutableDataSource,
CellRendererParams,
EditRendererParams,
HeaderRendererParams,
ReactCellRenderer,
ReactEditRenderer,
ReactHeaderRenderer,
GridInstruction,
UseGridDataOptions,
UseGridDataResult,
} from "@gp-grid/react";
// Data Source Factories
import {
createClientDataSource,
createDataSourceFromArray,
createMutableClientDataSource,
createServerDataSource,
} from "@gp-grid/react";
// Hooks
import { useGridData } from "@gp-grid/react";Row Dragging
Allow users to reorder rows in the React grid via drag-and-drop, with handle-based dragging, drop indicators, and event hooks for persistence logic today.
Grid Props
Reference for every prop accepted by the React Grid component, covering data sources, columns, selection, sorting, styling, and interactivity options.