Skip to content

feat(table): Support drag and drop of rows and columns in same table #22287

@jimshowalter

Description

@jimshowalter

Feature Description

Users should be able to drag and drop one or more rows and also drag and drop one or more columns.

Currently it appears that a table can either support drag and drop for rows, or drag and drop for columns, but not both.

If it's not possible to do this with Angular Material's table, is there some other component Angular developers should use?

Do developers need to write a new drag-and-drop?

Even just a blog entry on the topic from Google/Angular that provides some hints/direction would be super-helpful.

Use Case

It's a basic need in a spreadsheet, and Angular Material's table would make a great spreadsheet, except for this missing support.

I'm not the first to ask for this. See for example https://stackoverflow.com/questions/66665859/is-it-possible-to-move-rows-and-columns-in-the-same-angular-material-table and https://stackoverflow.com/questions/65000227/angular-material-table-with-rearrange-rows-and-columns-option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/drag-dropfeatureThis issue represents a new feature or feature request rather than a bug or bug fixneeds investigationA member of the team needs to do further investigation to determine the root cause

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions