Skip to content

feat: add auto-fit to DataGrid #2495

@ksbecker

Description

@ksbecker

🙋 Feature Request

Add some sort of auto-fit feature to the DataGrid component to make the columns render better

🤔 Expected Behavior

By setting a flag on the DataGrid component, the columns of the DataGrid should make an attempt to balance the columns better.

😯 Current Behavior

With no explicit formatting, the columns evenly distribute the width of each column.

💁 Possible Solution

Use JS and some CSS techniques to calculate column widths and apply widths dynamically to each column.

🔦 Context

With dynamic content it's difficult to predict exact widths for each column of a DataGrid. This feature would automatically determine better widths for each column based on initial load.

💻 Examples

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    community:contributionIssue will/can be addressed by community contributionimprovementA non-feature-adding improvementstatus:in-progressWork is in progress

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions