Skip to content

Responsive columns on Table #2171

@ghost

Description

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

Currently the table does not deal with small screens well. Columns are not responsive and do not collapse. datatables.net supports this functionality

What does the proposed API look like?

Same as ant-design/ant-design#23298 in the react project. Add a responsive value to the column definition to indicate where a column should collapse:

{
title: 'Age',
dataIndex: 'age',
key: 'age',
responsive: ['md']
},

See https://github.com/ant-design/ant-design/blob/feature/components/table/demo/responsive.md demo at https://preview-23298-ant-design.surge.sh/components/table/#components-table-demo-responsive

Ideally there should also be an expandable row with the missing column data inserted, as per the datatables.net functionality. (This would be incremental to the current functionality in the react project.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions