Skip to content

UseGridOverlayOptions

Since v1.4.0

Options for useGridOverlay.

PropertyTypeDescription
open?booleanWhether the overlay is currently open.
gridElement?DataGridElement<any> | unknownOptional explicit grid element. When omitted, the hook resolves the grid by:

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.


Optional explicit grid element. When omitted, the hook resolves the grid by:

  1. Walking up the DOM from panelRef.current via closest('tbw-grid, [data-tbw-grid]') (works for inline overlays).
  2. Falling back to the GridElementContext populated by <DataGrid> / <GridProvider> (works for portal-rendered overlays whose DOM is detached from the grid subtree).