[Feature Request] Data Table Search strategies to exclude non searched item
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 41k
- Forks
- 7.1k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 11
Description
Problem to solve
When having a DataTable with search + select-strategy="page". If you click on the "Select all button" it will also select items filtered out by the search.
+ example of weird behaviour encountered with this issue:
- having 5 items per page set
- and having items: "t1", "t2", "t3", "t4", "aa". "t5"
- and searching "t".
The "select-all" button will also select "aa" event if pagination indicates that there are 5 items
Proposed solution
select-strategy="page" also exclude from "select-all" button the items filtered out by search
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the DataTable handling for select-strategy="page" and the select-all action, then reproduce the reported case with five items per page and a search for "t". Done means selecting all excludes the filtered-out "aa" item while retaining the matching items.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100