material-table icon indicating copy to clipboard operation
material-table copied to clipboard

How to show the filters along with column name

Open vijthang61 opened this issue 7 years ago • 5 comments

I want to show the filters in the same row along with column headers and not as a separate header. Let me know how to achieve this.

vijthang61 avatar Feb 18 '19 09:02 vijthang61

Hi @vijthang61 ,

Material table does not provide this feature. But you can override header component to achieve this.

mbrn avatar Feb 19 '19 05:02 mbrn

Any example to override header component?

vijthang61 avatar Feb 19 '19 06:02 vijthang61

You can look at component overriding examples at docs: https://mbrn.github.io/material-table/#/docz-examples-10-example-component-overriding

mbrn avatar Feb 19 '19 07:02 mbrn

but I need some example on how to write code where I combine filter and header together in one line, can you help me with this

vijthang61 avatar Feb 19 '19 08:02 vijthang61

@vijthang61 ,

This is not a easy change. You should develop your own header component that handles every feature of default header and default filter row.

But i don't know what you exactly want? Can you show me an example? such as another datatable

mbrn avatar Feb 19 '19 12:02 mbrn