-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Context / Problem to solve / Design
The big piece I see currently missing is option for uncontrolled state, or maybe event listener handlers (e.g. for restoring pagination, selection, expanded states tracked by redux for example). But this could be out of scope for this PR, or is a separate story.
The current DataTable implementation assumes the entire dataset is available, but we need to handle situations where the component only receives the data to display. In that case, we cannot rely on the library to manage those states, and it will be up to the implementation to handle them.
Selection
- We can use
onRowSelectionChangeandstateprovided by the library (tan-stack doc ) and map it to our proponChangeSelection
Pagination
- Provide a
controlledanduncontrolledstate for the pagination - The props from the
Paginationcomponent should be available from theDataTable - We should be able to add custom attributes to the DataTable Pagination
Sorting
- Provide a
controlledanduncontrolledstate for the sorting
Note:
If necessary, we can separate this story into individual features.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels