API REFERENCE

cellClicked

Emitted on a cell click. Read the row, field, and input context from detail.

What does this API do?

Emitted on a cell click. Read the row, field, and input context from detail.

Exact input and result types

typescript
cellClicked: GridCellClickedDetail

Usage flow

Subscribe with grid.addEventListener('cellClicked', handler). The result is in event.detail, and event names are case-sensitive. Remove subscriptions when disposing of the view.

javascript
const controller = new AbortController();
grid.addEventListener('cellClicked', event => {
  console.log(event.detail);
}, { signal: controller.signal });
// On view disposal: controller.abort();

Read related types

Feature explanations and examples