Mui-datatables: Show/Hide Options Filter, Print, Download

Created on 19 Feb 2018  路  4Comments  路  Source: gregnb/mui-datatables

Hi, I just implemented the library in my project and it's amazing! but I have a question with the props options, filter, print etc since I put the false boolean to hide them but in the same way render the icons

Most helpful comment

Could you paste what you are using for a config? In my example below

   const options = {
      filterType: "dropdown",
      responsive: "stacked",
      filter: false,
      download: false,
      print: false
    };

I do not see the filter, download, print icons anymore so it is working as expected. Example here:
https://codesandbox.io/s/lrl0361qpm

screen shot 2018-02-19 at 10 38 07 am

All 4 comments

Hey @demoreno thanks for the feedback! As for your question, if I'm understanding correctly you would like a way to disable the icons but still render them?

Thanks for your answer, not the problem is that setting the props false to print, filter etc so that they do not show since in my logic they are not necessary but the same icons are shown in the same way

data={data}
columns={columns}
download={false}
print={false}
filter={false}
/>

Could you paste what you are using for a config? In my example below

   const options = {
      filterType: "dropdown",
      responsive: "stacked",
      filter: false,
      download: false,
      print: false
    };

I do not see the filter, download, print icons anymore so it is working as expected. Example here:
https://codesandbox.io/s/lrl0361qpm

screen shot 2018-02-19 at 10 38 07 am

Hey @demoreno did you get a chance to see my reply?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

krsandesh picture krsandesh  路  3Comments

gangakrishh picture gangakrishh  路  3Comments

chapmanjacobd picture chapmanjacobd  路  4Comments

pranavtheway picture pranavtheway  路  3Comments

naothomachida picture naothomachida  路  3Comments