cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DataTable onRowSelectionChange implementation signature

gilgi
DynaMight Champion
DynaMight Champion
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.

1 REPLY 1

stefan_eggersto
Dynatrace Mentor
Dynatrace Mentor

Hi @gilgi,

The signature of this prop was changed in the latest version 0.107.0; see https://developer.dynatrace.com/whats-new/release-notes/design-system-preview-changelog.

Please update your dependencies using npm run update to be in sync with the documentation again.

Featured Posts