@kanunilabs/datagrid-react / buildCellMenuItems
Function: buildCellMenuItems()
buildCellMenuItems<
TRow>(controller,text,option,needsSeparator,onExportError?):GridMenuItem<RowMenuContext<TRow>>[]
Defined in: datagrid-react/src/components/cellMenuItems.ts:115
Build the built-in entries for one opened menu.
needsSeparator is the caller telling us whether anything sits above us —
the divider belongs to the boundary, not to this list, so an app menu that
turned out to be empty does not leave a rule floating at the top.
Type Parameters
TRow
TRow = GridRowData
Parameters
controller
DataGridController<TRow>
text
GridDictionary
option
boolean | CellMenuOptions | undefined
needsSeparator
boolean
onExportError?
(message) => void
Returns
GridMenuItem<RowMenuContext<TRow>>[]