material-table

Changing the style of “Actions” in material-table react

梦想与她 提交于 2020-07-09 12:10:28
问题 I have been using material-table in one of my projects. While I am able to change the style ( font-size, color) of the user defined columns, I am not able to do so for the "Actions" column. I am specially interested in changing the font-size. Same issue with the pagenation: I need to change its font-size however it seems there is no option available. Please take an example from : https://material-ui.com/components/tables/#complementary-projects 回答1: For pagination, you should override

How to control programmatically the toggling of a row?

房东的猫 提交于 2020-07-09 06:13:48
问题 I'm using MaterialTable with REACT (Datatable for React based on Material-UI Table. material-table.com) more precisely the detailed-panel - material-table.com/#/docs/features/detail-panel What do I need? user should open/close detailed panels and drag/drop items between them. The problem: each time I React rendering the table all detailed panels are closes. I'm seeking for a solution that will allow me to set a flag for each row that notes whether it's hidden or open. So while rendering ..

How to control programmatically the toggling of a row?

我与影子孤独终老i 提交于 2020-07-09 06:13:45
问题 I'm using MaterialTable with REACT (Datatable for React based on Material-UI Table. material-table.com) more precisely the detailed-panel - material-table.com/#/docs/features/detail-panel What do I need? user should open/close detailed panels and drag/drop items between them. The problem: each time I React rendering the table all detailed panels are closes. I'm seeking for a solution that will allow me to set a flag for each row that notes whether it's hidden or open. So while rendering ..

How can I use tableRef.onRowSelected to update the UI via the onRowClick property?

六月ゝ 毕业季﹏ 提交于 2020-06-27 17:22:33
问题 I've written an onRowClick function to change the rows tableData.checked value when the row is click as seen in the answer here #300 I can see the checked state updating in a console log but the checkbox itself does not change visibly until I actually click another rows checkbox. It will then show all the checkboxes that had their tableData.checked values updated. I'd like to be able to have the checkbox actually display this change to the user onRowClick. Here is my current code:

Material table nested rows expand/collapse in reactjs

天涯浪子 提交于 2020-06-17 09:34:10
问题 I am having a react-chartjs with material-table integrated, find it in this link: https://codesandbox.io/s/elastic-brook-okkce?file=/src/Dashboard.jsx As you may see that on the click of any bar, a table is populated. The values in that table are fetched from the backend response (I've not written the code for the same here, but it is working in my PC properly). That Material-table takes in the "data" prop having an object("chartData") assigned to that prop that stored the response from the

Is it possible to save the order of the column of material table to a database to keep it persistent?

末鹿安然 提交于 2020-05-29 09:44:22
问题 I want my users to be able to drag the columns on the material table and keep that state persistent. I can get the states of my columns and their orders at any time. I do save them. However, when I try to render with the saved order of my columns it doesn't seem to update my material table. I'm using react Material-Table from material-table.com Here is the code I'm trying to do: const tableHeaders = []; tableHeaders.push({ title: 'a', field: 'a' }); tableHeaders.push({ title: 'b', field: 'b'

Is it possible to save the order of the column of material table to a database to keep it persistent?

隐身守侯 提交于 2020-05-29 09:43:22
问题 I want my users to be able to drag the columns on the material table and keep that state persistent. I can get the states of my columns and their orders at any time. I do save them. However, when I try to render with the saved order of my columns it doesn't seem to update my material table. I'm using react Material-Table from material-table.com Here is the code I'm trying to do: const tableHeaders = []; tableHeaders.push({ title: 'a', field: 'a' }); tableHeaders.push({ title: 'b', field: 'b'