mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-17 21:00:45 +00:00
Add comment on CustomToolbar
This commit is contained in:
@ -216,6 +216,12 @@ function RecordGridWidget({widgetMetaData, data}: Props): JSX.Element
|
|||||||
})();
|
})();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** So that we can useGridApiContext to add event handlers for mouse down and
|
||||||
|
** row double-click (to make it so you don't accidentally click into records),
|
||||||
|
** we have to define a grid component, so even though we don't want a custom
|
||||||
|
** toolbar, that's why we have this (and why it returns empty)
|
||||||
|
*******************************************************************************/
|
||||||
function CustomToolbar()
|
function CustomToolbar()
|
||||||
{
|
{
|
||||||
const handleMouseDown: GridEventListener<"cellMouseDown"> = ( params, event, details ) =>
|
const handleMouseDown: GridEventListener<"cellMouseDown"> = ( params, event, details ) =>
|
||||||
|
Reference in New Issue
Block a user