|
|
@ -110,7 +110,7 @@ export function Datatable<
|
|
|
|
initialState: {
|
|
|
|
initialState: {
|
|
|
|
pagination: {
|
|
|
|
pagination: {
|
|
|
|
pageSize: settings.pageSize,
|
|
|
|
pageSize: settings.pageSize,
|
|
|
|
pageIndex: page,
|
|
|
|
pageIndex: page || 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
sorting: settings.sortBy ? [settings.sortBy] : [],
|
|
|
|
sorting: settings.sortBy ? [settings.sortBy] : [],
|
|
|
|
globalFilter: settings.search,
|
|
|
|
globalFilter: settings.search,
|
|
|
@ -163,6 +163,7 @@ export function Datatable<
|
|
|
|
renderTableActions={() => renderTableActions(selectedItems)}
|
|
|
|
renderTableActions={() => renderTableActions(selectedItems)}
|
|
|
|
renderTableSettings={() => renderTableSettings(tableInstance)}
|
|
|
|
renderTableSettings={() => renderTableSettings(tableInstance)}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<DatatableContent<D>
|
|
|
|
<DatatableContent<D>
|
|
|
|
tableInstance={tableInstance}
|
|
|
|
tableInstance={tableInstance}
|
|
|
|
renderRow={(row) => renderRow(row, highlightedItemId)}
|
|
|
|
renderRow={(row) => renderRow(row, highlightedItemId)}
|
|
|
|