@kanunilabs/datagrid-enterprise
@kanunilabs/datagrid-enterprise / SideBarCustomPanel
Interface: SideBarCustomPanel<TRow>
A panel of the application's own in the side bar (G-UI-02) — the React
SideBarCustomPanel, DOM-typed. render fills host when the tab opens
and may return a cleanup, called when it closes or the grid is destroyed.
The bar never repaints it: what is in it is the app's.
Type Parameters
TRow
TRow = GridRowData
Properties
id
id:
string
Names the panel in defaultOpen, onOpenChange and openSideBarPanel. Not columns or filters.
label
label:
string
The tab's text, and the panel's title.
render
render: (
host,controller) =>void| (() =>void)
Parameters
host
HTMLElement
controller
DataGridController<TRow>
Returns
void | (() => void)