Skip to content

UseGridOverlayOptions

Since v1.4.0

Options for useGridOverlay.

PropertyTypeDescription
open?MaybeRef<boolean>Whether the overlay is currently open. Accepts a plain boolean, a ref, or a computed.
gridElement?MaybeRef<DataGridElement<any> | unknown | undefined>Optional explicit grid element. When omitted, the hook resolves the grid by:

Whether the overlay is currently open. Accepts a plain boolean, a ref, or a computed.

Set to false to unregister the panel without unmounting it (e.g. when the consumer toggles visibility via CSS rather than v-if). Defaults to true.


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

  1. Walking up the DOM from panelRef.value via closest('tbw-grid, [data-tbw-grid]') (works for inline overlays).
  2. Falling back to the GRID_ELEMENT_KEY ref provided by <TbwGrid> (works for <Teleport>-rendered overlays whose DOM is detached from the grid subtree).

AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://toolboxjs.com/llms-full.txt