You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: stories/props.stories.mdx
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ import { Meta } from '@storybook/addon-docs';
56
56
| selectableRowsComponentProps | object | no |{}| Additional props you want to pass to `selectableRowsComponent`. See [Material UI Example](/docs/ui-library-material-ui-table--table) to learn how you can override indeterminate state |
57
57
| selectableRowSelected |`(row) => {}`| no || Select a row based on a property in your data. e.g. `row => row.isSelected`. `selectableRowSelected` must return a boolean to determine if the row should be programatically selected. <br /><br />**Important Notes:**<br />- Changing the state of selectableRowSelected will NOT re-render RDT, instead you should change your data if you want to update the items that are selected.<br />- When using `selectableRowsSingle``selectableRowSelected` will only return the first match |
58
58
| selectableRowDisabled |`(row) => {}`| no || Disable row select based on a property in your data. e.g. `row => row.isDisabled`. `selectableRowDisabled` must return a boolean to determine if the row should be programatically disabled. |
59
-
| onSelectedRowsChange |`({ allSelected; selectedCount; selectedRows }) => {}`| no || Callback that fires anytime the rows selected state changes. Returns ({allSelected, selectedCount, selectedRows}).<br /><br />**Note:** It's highly recommended that you memoize the callback that you pass to `onSelectedRowsChange` if it updates the state of your parent component. This prevents `DataTable` from unnecessary re-renders every time your parent component is re-rendered |
59
+
| onSelectedRowsChange |`({ allSelected; selectedCount; selectedRows }) => {}`| no || Callback that fires anytime the rows selected state changes. Returns `({ allSelected, selectedCount, selectedRows })`.<br /><br />**Note:** It's highly recommended that you memoize the callback that you pass to `onSelectedRowsChange` if it updates the state of your parent component. This prevents `DataTable` from unnecessary re-renders every time your parent component is re-rendered |
60
60
61
61
# Row Expander
62
62
@@ -77,7 +77,7 @@ import { Meta } from '@storybook/addon-docs';
| pagination | boolean | no | false | Enable pagination with defaults. by default the total record set will be sliced depending on the page, rows per page. if you wish to use server side pagination then use the `paginationServer` property |
82
82
| paginationServer | boolean | no | false | Changes the default pagination to work with server side pagination |
83
83
| paginationServerOptions | object | no |`{ persistSelectedOnPageChange: false, persistSelectedOnSort: false }`| When using `selectableRows` is used to make selected rows persist on page change and on sort when using server side pagination. <br /><br />**Note:** when using `persistSelectedOnPageChange` that select all checkbox will not be visible (i.e. you cannot select rows there you have to retrieved from the server) |
0 commit comments