Defines a dialog frame configuration used by LyteNyte Grid.
This structure is passed to grid internals to associate a rendering component for dialogs triggered by grid interactions.
Component renderer function to use for this dialog frame.
Function responsible for rendering a dialog component.
LyteNyte Grid does not provide a dialog component by default. Instead, it expects developers to use their preferred dialog libraries. This renderer function receives control parameters and should return a valid ReactNode to render as a dialog.
Note: The dialog component used should support controlled open/close behavior.
params | DialogFrameRendererParams (docs) |
ReactNode
Parameters provided to the dialog frame renderer function.
These include the grid context, the frame being rendered, and any additional user-provided context.
Custom context data passed to the frame being rendered.
This context is supplied programmatically at the point of invoking the frame. It can contain any arbitrary information required for rendering behavior.
any
The dialog frame definition currently being rendered.
Type | DialogFrame |
A reference to the LyteNyte Grid instance.
Type | Grid |
Describes a popover frame and the component renderer used to display it.
The popover frame is triggered by LyteNyte Grid interactions and used to display contextual information, editors, or auxiliary UI near a cell or element.
Renderer function to generate the popover content.
Function that renders a popover component for a given context.
LyteNyte Grid does not include a built-in popover renderer. Developers must use their own popover UI libraries and integrate them by implementing this renderer interface.
params | PopoverFrameRendererParams (docs) |
ReactNode
Parameters passed to the popover frame renderer function.
Includes information about the grid, the target HTML element or virtual target to anchor the popover, and the frame being rendered.
Custom context data passed to the frame being rendered.
This context is supplied programmatically at the point of invoking the frame. It can contain any arbitrary information required for rendering behavior.
any
The popover frame definition that should be rendered.
Type | PopoverFrame |
A reference to the LyteNyte Grid instance.
Type | Grid |
The target element or virtual position where the popover should be anchored.
HTMLElement | VirtualTarget
HTMLElement
VirtualTarget
(docs)Represents a virtual DOM target with bounding information, used in situations where a physical DOM element does not exist. Commonly used for positioning popovers or overlays within LyteNyte Grid.
Specifies a context element that acts as a reference for the virtual element. Helps in aligning or calculating relative positions.
Type | HTMLElement |
Returns the bounding rectangle representing the virtual target.
Equivalent to a DOMRect but without the toJSON
method.
This function takes no parameters.
Omit
Returns an array of client rectangles for the virtual target, useful for rendering inline tooltips or positioning logic.
This function takes no parameters.
Omit[]