Skip to content

Commit

Permalink
feat(MI-223): added onRowSelectionChange callback to dataTable (#541)
Browse files Browse the repository at this point in the history
* MI-223: added onRowSelectionChange callback to dataTable

* MI-223: added changeset

---------

Co-authored-by: Vivek Jain <vivekjain@Viveks-MacBook-Pro.local>
  • Loading branch information
vivek-p44 and Vivek Jain authored Jul 11, 2024
1 parent 8842f97 commit 4b69d9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fresh-hounds-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@project44-manifest/react': patch
---

added onRowSeclectionChange callback
1 change: 1 addition & 0 deletions packages/react/src/components/DataTable/DataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export function DataTable<TData extends RowData>(props: DataTableProps<TData>) {
selectAllCheckboxProps,
selectCheckboxProps,
state,
onRowSelectionChange,
...(manualExpanding && { onExpandedChange }),
...(manualPagination && { onPaginationChange }),
...(manualSorting && { onSortingChange }),
Expand Down

0 comments on commit 4b69d9c

Please sign in to comment.