Allow "select all" to apply to all rows across all data table pages
- Dominant language
- TypeScript
- Stars
- 53
- Forks
- 63
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 15
Description
### Summary
Add a prop which allows developers to make clicking the "select all" checkbox select all data in an ic-data-table, rather than just the current page.
### 💬 Description
Currently, when using the `rowSelection` prop on a data table, if the user clicks the "select all" checkbox, only the rows on the current visible page get selected. It would be useful to provide an option which makes all rows across all pages get selected.
### 💰 Use value
Allows more customisation of the row selection functionality. Some users may expect it to be the default behaviour as well.
### Additional info
Please check that this resolves the issue mentioned in the below comment.
Contributor guide
Research direction
Start by locating the ic-data-table implementation and its rowSelection behavior. Trace how the "select all" checkbox currently handles the visible page, then define and implement the requested prop so selection can span all data-table pages. Done means the option selects all rows across pages while preserving the existing current-page behavior otherwise.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100