gregnb / gregnb/mui-datatables

Is it possible to change the width of the selected column?

Open
#1,788 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.7k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

@@

## Expected Behavior

Failed to use resizableColumns: true

WHY ->

![image](https://user-images.githubusercontent.com/67149898/135376546-133cf5fb-1ba0-4124-8b70-bd49cd7020e7.png)

I can't modify the z-Index of a vertical line.

## Current Behavior

![image](https://user-images.githubusercontent.com/67149898/135376214-1e44ec0a-dadb-43d6-8d0b-e8b0dfdfeb51.png)

I want to change the width of that column by moving a slider.

To do this, I need to get the index of the column I selected and change the options.

But this method brings too much rendering.

## Steps to Reproduce (for bugs)

1.
2.
3.
4.

## Your Environment

| Tech | Version |
|--------------|---------|
| Material-UI | |
| MUI-datatables | |
| React | |
| browser | |
| etc | |

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the resizableColumns option and the column-selection and rendering paths in the repository. Determine how the selected column's width and the vertical resize line are currently controlled; done should allow changing that width with a slider without excessive rerendering.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.