primefaces / primefaces/primereact
Datatable: Additional `columnResizeMode`
Nobody has claimed this yet.
- Dominant language
- CSS
- Stars
- 8.3k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the feature you would like to see added
Right now, when resizableColumns is set to true, as the user resizes a column, the resizing only affect the column and the one next to it.
E.g if one moves the resizer between 2 columns to the left, the column on the left gets smaller and the one on the right gets bigger.
It would be helpful if when we move the resizer to the left, the one on the left gets smaller abd the amount by which the column gets smaller is distributed on all of the other columns.
Is your feature request related to a problem?
No
Describe the solution you'd like
Introduce a new columnResizeMode beside "fit" and "expand" so when we move the resizer to the left, the one on the left gets smaller and the amount by which the column gets smaller is distributed on all of the other columns.
Describe alternatives you have considered
No response
Additional context
No response
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 locating the DataTable implementation and its existing columnResizeMode handling for "fit" and "expand". Trace the current resizable-column behavior and determine where a third mode would be integrated. Done means the new mode distributes the resized width across the other columns as described and preserves the existing modes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100