[Feature Request] Access filtered-items of VDataTable
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
For custom Selection-Function I'd like to "select all filtered items" independent from current pagination. In VDataTable it is possible to access the current items via @current-items-handler, but this doesn't work for my needs, since this only contains the current page, if there are more items than a page can show.
unfortunatelly filtereditems is a property of the child VData of VDataTable - and now I'm using this way:
datatable.$children[0].filteredItems
that works pretty fine now, but I think it is only a dirty hack and it only works as long as the VDataTable and VData-Child isn't changed...
Proposed solution
Like it is done with the current-items Handler I'd suggest a "filtered-items" Handler
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 VDataTable's @current-items-handler and the child VData filteredItems property. Add a public filtered-items handler that exposes all filtered items regardless of pagination, then verify that it supports the selection use case described.
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
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100