-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Make Paper Container Optional #119
Comments
Why not. I will add a Container property to components. |
I am working on this. |
This is done. This will be in next release(1.9.0) in a few days. How to use: <MaterialTable
components={{
Container: props => <div style={{background: '#AAA'}}>{props.children}</div>,
//Container: React.Fragment
}}
columns={[
{ title: 'Adı', field: 'name', filtering: false, render: () => <div>merhaba</div> },
{ title: 'Soyadı', field: 'surname', filtering: false },
{ title: 'Doğum Yılı', field: 'birthYear', type: 'numeric' },
{ title: 'Doğum Yeri', field: 'birthCity', lookup: { 34: 'İstanbul', 63: 'Şanlıurfa' }, filtering: false }
]}
data={[
{ name: 'Mehmet', surname: 'Baran', birthYear: 1987, birthCity: 63 },
]}
title="Demo Title"
/> |
Can we add an example for this? It was hard to find any documentation on this. If you can't do it, maybe I find time for it this week. |
Hi @eluchsinger Try this: <MaterialTable
....
components={{
Container: props => props.children
}}
/> |
@mbrn yes, thanks. I could solve it already. I was just giving feedback so you could add an official example as it wasn't easy to find the example hidden in this issue. |
@mbrn Hello, |
Try this: <MaterialTable |
@mbrn having same result, no difference. https://ibb.co/7260rf6 this is the screenshot of working version (without components) any idea ? |
link are broken. Can you fix them? |
@mbrn sure, updated https://ibb.co/7260rf6 this is the screenshot of working version (without components) |
@mbrn any luck ? |
I still can not access to screenshots. Can you create a codesandbox please? |
@mbrn sure
|
It is related with using a functional component when overriding Container. Look at this: https://codesandbox.io/embed/1301mq3knj |
@mbrn This just solved a similar problem for me. Care to explain the reason? Just curious |
Hello @mbrn, I used:
to hide the Paper of the table because in my project the page that presents the table is contained by a Dashboard.js as a parent page and this dashboard includes a Paper, but I would like help indicating how I can hide the line that is placed under the pagination, I have an example here: https://codesandbox.io/s/gracious-sea-l7sgc thank you very much |
I have the same issue with the popover menu: how can i fix it? Thank you in advance for your reply. |
Could we make the table wrapper optional? I prefer my table style without a Paper container.
The text was updated successfully, but these errors were encountered: