Hi, Trying to implement onRowSelectionChange method and am looking at the documentation samples. IIn the code implemented and working it is written:
const myRowSelectionChangedListener = (
selectedRows: Record<number, boolean>,
selectedRowsData: unknown[],
trigger: 'user' | 'internal'
) => {
console.log('row selection obj', selectedRows);
console.log('row selection data', selectedRowsData);
console.log('trigger', trigger);
};
however, the editor shows a different signature for the method within the DataTable
onRowSelectionChange?: (rows: unknown[]) => void;
Surely I’m missing something. What is it?
Gil.