Skip to content

useGridEvent

useGridEvent(gridRef: RefObject<DataGridElement<any> | object | null>, eventName: K, handler: (event: unknown) => void, deps: unknown[]): void
NameTypeDescription
gridRefRefObject<DataGridElement<any> | object | unknown>Ref to the DataGrid component or element
eventNameKName of the grid event to listen for
handler(event: unknown) => voidEvent handler function
depsunknown[]Optional dependency array (handler is stable if omitted)
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt