@kanunilabs/datagrid-react-enterprise
@kanunilabs/datagrid-react-enterprise / SideBarCustomPanel
Interface: SideBarCustomPanel<TRow>
A panel of the application's own in the side bar (G-UI-02): a tab beside Columns and Filters, and whatever the app draws when it is open — a summary of the selected row, a legend, a form. Drawn only while open, like the built-in panels; state that must outlive a close belongs to the app.
Type Parameters
TRow
TRow = GridRowData
Properties
id
id:
string
Names the panel in defaultOpen, open and onOpenChange. Not columns or filters.
label
label:
string
The tab's text, and the panel's title.
render
render: (
controller) =>ReactNode
The panel's body. Gets the grid's controller, to read rows or act on them.
Parameters
controller
DataGridController<TRow>
Returns
ReactNode