gregnb / gregnb/mui-datatables

How to order filters independently from the columns?

Open
#1,334 3 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

Hello,

We're using MUIDataTable for a while now, because that's the best table-oriented component the previous front developer had chosen.
Now he's not here, we have to try our best to make it meet our users' expectation.

That's why I'm opening a few issues regarding various aspects of customization of MUIDataTable.
For this purpose, I've forked your Codesandbox and created a little showcase of all our issues:
https://codesandbox.io/s/muidatatables-misc-requests-4vkxk

First of all: is there a way to reorder the filters in the filter dialog?
In fact, we noticed the order of the filters is linked to the order of the columns, so we tried to reorder our columns; unfortunately this isn't always wanted.

In our example, we'd like to have both "Former Role" and "New Role" filters side-by-side. How can we do this?

Current:
![MUIDataTable_filters_not_nearby](https://user-images.githubusercontent.com/29626929/84711663-25451c80-af67-11ea-83b9-2966754bdddb.png)

Expected:
![MUIDataTable_filters_now_nearby](https://user-images.githubusercontent.com/29626929/84711678-2a09d080-af67-11ea-96d6-87cbd39d1d51.png)

Note: to be able to "create" the 2nd screenshot, I "hacked" the live document and set `width: 100%` (instead of 50%) for the `

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.