Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: column grouping #189

Open
NullVoxPopuli opened this issue May 22, 2023 · 0 comments
Open

Feature request: column grouping #189

NullVoxPopuli opened this issue May 22, 2023 · 0 comments

Comments

@NullVoxPopuli
Copy link
Contributor

Not dissimilar to #20

group a group b
sub a a sub a b sub b a sub b b
data a data b data c data d

configuration could look like this:

import { defineColumns, GroupedColumns } from 'the-group-plugin';
// ...
headlessTable({
  columns: () => defineColumns([
    {
      groupName: 'group a',
      columns: [...]
    },
   {
      groupName: 'group b',
      columns: [...]
    }
   ]),
  plugins: [GroupedColumns, ColumnReordering, ColumnResizing]
});

I think the existing column Re-ordering and Column re-sizing plugins should still work with grouped columns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant