Skip to content

useGridEvent

useGridEvent(eventName: K, handler: (event: CustomEvent<unknown>) => void, gridElement: Ref<DataGridElement<any> | null, DataGridElement<any> | null>): void
NameTypeDescription
eventNameKThe name of the grid event to listen for
handler(event: CustomEvent<unknown>) => voidThe event handler function
gridElementRef<DataGridElement<any> | unknown, DataGridElement<any> | unknown>Optional grid element ref (uses injected if not provided)
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