Skip to content

CellClickDetail

Detail for a cell click event. Provides full context about the clicked cell including row data.

grid.on('cell-click', ({ row, field, value, rowIndex, colIndex }) => {
console.log(`Clicked ${field} = ${value} in row ${rowIndex}`);
// Access the full row data
if (row.status === 'pending') {
showApprovalDialog(row);
}
});
PropertyTypeDescription
rowIndexnumberZero-based row index of the clicked cell.
colIndexnumberZero-based column index of the clicked cell.
columnColumnConfig<TRow>Column configuration object for the clicked cell.
fieldstringField name of the clicked column.
valueunknownCell value at the clicked position.
rowTRowFull row data object.
cellElHTMLElementThe clicked cell element.
originalEventMouseEventThe original mouse event.
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt