UseGridOverlayOptions
Since v1.4.0
Options for useGridOverlay.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
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: |
Property Details
Section titled “Property Details”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.
gridElement
Section titled “gridElement”Optional explicit grid element. When omitted, the hook resolves the grid by:
- Walking up the DOM from
panelRef.valueviaclosest('tbw-grid, [data-tbw-grid]')(works for inline overlays). - 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