primefaces / primefaces/primereact

Datatable: Additional `columnResizeMode`

Open
#4,286 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Type: Enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.