[Feature Request] VDataTable: Resizable columns + automatic hide / display column feature
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
Data table columns are not resizable, not natively nor available options.
Some issues already have been opened, but downvoted or closed with painful and incorrect solutions.
I really think this should be a native feature of dataTables, as well as another one which should be to be able to hide / display columns on demand.
As those feature often come again and again, they'll be more than valuable to be supported natively, or, at the very least, to have working examples wrt the way to go.
Proposed solution
Any packages I tried has pro and cons.
For the time being, I use a custom solution using event handler and offset computations to resize columns, but this is far from ideal. I also tried the most proposed solution, i.e. the resize-column package, but it has issue both with sort and expand options.
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 with the VDataTable entry point and review how its sorting and expand options interact with the current column behavior. Compare the reported resize-column package issues and the custom event-handler and offset approach. Done would require a defined native solution for resizing columns and hiding or displaying them on demand without breaking sorting or expansion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100