UseGridOverlayOptions
Since v1.4.0
Options for useGridOverlay.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
open? | boolean | Whether the overlay is currently open. |
gridElement? | DataGridElement<any> | unknown | Optional explicit grid element. When omitted, the hook resolves the grid by: |
Property Details
Section titled “Property Details”Whether the overlay is currently open.
Set to false to unregister the panel without unmounting it (e.g. when
the consumer toggles visibility via CSS rather than conditional render).
Defaults to true.
gridElement
Section titled “gridElement”Optional explicit grid element. When omitted, the hook resolves the grid by:
- Walking up the DOM from
panelRef.currentviaclosest('tbw-grid, [data-tbw-grid]')(works for inline overlays). - Falling back to the
GridElementContextpopulated by<DataGrid>/<GridProvider>(works for portal-rendered overlays whose DOM is detached from the grid subtree).