Params passed to the cellEditStart event.

interface GridCellEditStartParams<R, V, F> {
    api: GridApiCommunity;
    cellMode: GridCellMode;
    colDef: GridStateColDef;
    field: string;
    formattedValue?: F;
    hasFocus: boolean;
    id: GridRowId;
    isEditable?: boolean;
    key?: string;
    reason?: GridCellEditStartReasons;
    row: R;
    rowNode: GridTreeNode;
    tabIndex: -1 | 0;
    value?: V;
}

Type Parameters

Hierarchy (view full)

Properties

api: GridApiCommunity

GridApi that let you manipulate the grid.

cellMode: GridCellMode

The mode of the cell.

colDef: GridStateColDef

The column of the row that the current cell belongs to.

field: string

The column field of the cell that triggered the event.

formattedValue?: F

The cell value formatted with the column valueFormatter.

hasFocus: boolean

If true, the cell is the active element.

The grid row id.

isEditable?: boolean

If true, the cell is editable.

key?: string

If the reason is related to a keyboard event, it contains which key was pressed.

No longer needed.

The reason for this event to be triggered.

row: R

The row model of the row that the current cell belongs to.

rowNode: GridTreeNode

The node of the row that the current cell belongs to.

tabIndex: -1 | 0

the tabIndex value.

value?: V

The cell value. If the column has valueGetter, use params.row to directly access the fields.