DetailGridCreateContext
Context passed to the onDetailGridCreate lifecycle hook.
Provides access to the created detail grid instance and related metadata.
Use this to customize behavior or initialize the detail grid.
Props
The following table outlines the props for the DetailGridCreateContext:
| Name | Type | Default | Description |
|---|---|---|---|
| detailGridElement | HTMLDivElement | - | DOM container element where the detail grid is rendered. Use for DOM measurements, focus management, or visibility detection. |
| gridInstance | - | GridComponent instance reference. Fully initialized and ready for API calls and event subscriptions. Use to select rows, trigger actions, or subscribe to grid events. | |
| nestingDepth | number | - | Nesting depth of this detail grid.
|
| parentData | T | - | Parent row data object that triggered the detail grid creation. Use to associate the detail grid with specific parent data. |
| rowIndex | number | - | Parent row index in the master grid (zero-based). |