Skip to content

RowClickDetail

Detail for a row click event. Provides context about the clicked row.

grid.on('row-click', ({ row, rowIndex, rowEl }) => {
console.log(`Clicked row ${rowIndex}: ${row.name}`);
// Highlight the row
rowEl.classList.add('selected');
// Open detail panel
showDetailPanel(row);
});
PropertyTypeDescription
rowIndexnumberZero-based row index of the clicked row.
rowTRowFull row data object.
rowElHTMLElementThe clicked row 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