Open wakatakerutmt opened 4 years ago
Please see codesandbox ( https://codesandbox.io/s/muidatatables-custom-toolbar-forked-q257d ) and change view column in browser.
const columns = [
{
name: "Name",
options: {
display: "false"
}
},
{
name: "Title",
options: {
display: "true"
}
},
{
name: "Location",
options: {}
}
];
I think this part needs to be changed to the state.
This issue was made very well. Thank you
When I want to change global state in
onViewColumnsChange
function of options, I cannot change the view column of setting column option todisplay: 'true' or 'false'
.Expected Behavior
We can change global state in
onViewColumnsChange
using context and change the view column of setting column option todisplay: 'true' or 'false'
.Current Behavior
When we change global state in
onViewColumnsChange
using context , we cannot change the view column of setting column option todisplay: 'true' or 'false'
.Steps to Reproduce (for bugs)
Please see codesandbox ( https://codesandbox.io/s/muidatatables-custom-toolbar-forked-q257d ) and change view column in browser.
We can change "Location" column of not setting option in display, but cannot change "Name" and "Title" columns of setting option in display.
onViewColumnsChange
and change the context inonViewColumnsChange
and set column option todisplay: "true"
or "display: "false"`.Your Environment