# DataTable onRowSelectionChange implementation signature

**URL:** <https://community.dynatrace.com/t/datatable-onrowselectionchange-implementation-signature/42689>\
**Category:** Developer Q&A Forum\
**Tags:** custom-app, coding-assistance\
**Created:** [November 17, 2023, 3:45pm UTC](https://community.dynatrace.com/t/datatable-onrowselectionchange-implementation-signature/42689 "2023-11-17T15:45:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gilgi](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gilgi/32/11747_2.png) [@gilgi](https://community.dynatrace.com/u/gilgi)\
**Post date:** [November 17, 2023, 3:45pm UTC](https://community.dynatrace.com/t/datatable-onrowselectionchange-implementation-signature/42689/1 "2023-11-17T15:45:15Z")

</div>

Hi,&nbsp;Trying to implement&nbsp;onRowSelectionChange method and am looking at the documentation samples. IIn the code implemented and working it is written:

```javascript
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

```javascript
onRowSelectionChange?: (rows: unknown[]) => void;

```

Surely I’m missing something. What is it?

Gil.

---

<div class="post-metadata">

**Author:** ![stefan\_eggersto](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/stefan_eggersto/32/34114_2.png) [@stefan\_eggersto](https://community.dynatrace.com/u/stefan_eggersto)\
**Post date:** [November 20, 2023, 9:40am UTC](https://community.dynatrace.com/t/datatable-onrowselectionchange-implementation-signature/42689/2 "2023-11-20T09:40:58Z")

</div>

Hi&nbsp;[@gilgi](https://community.dynatrace.com/user/12008),

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

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