For using the row context menu, you have to specify
renderRowContextMenu
. This function prop is called with
menuProps
as a first param. Either modify those props and set the desired
items
on the
menuProps
(and return
undefined
), or return a
<Menu />
component you want to render.
If
undefined
is returned from the
renderRowContextMenu
function prop, the default Menu is rendered (beware, it has no
items
by default).
The second param passed to the
renderRowContextMenu
function prop is an object with
{ rowProps, cellProps, computedProps, computedPropsRef }
, where
rowProps
are the props of the clicked row,
cellProps
are the props of the clicked cell,
computedProps
are the computed props of the
<ReactDataGrid />
and
computedPropsRef
is a ref to the latest
computedProps
object.