Mui-datatables: Option to disable Chip, when filter is applied.

Created on 2 Sep 2018  路  2Comments  路  Source: gregnb/mui-datatables


Is there any option to turn off the display chip on the table header, or at least configurable?

Most helpful comment

You could target the CSS and set display none on those chips.

  getMuiTheme = () => createMuiTheme({
    overrides: {
      MUIDataTableFilterList: {
        chip: {
          display: 'none'
        }
      }
    }
  })

  ...

  return (
      <MuiThemeProvider theme={this.getMuiTheme()}>
        <MUIDataTable title={"ACME Employee list"} data={data} columns={columns} options={options} />
      </MuiThemeProvider>
    );

All 2 comments

You could target the CSS and set display none on those chips.

  getMuiTheme = () => createMuiTheme({
    overrides: {
      MUIDataTableFilterList: {
        chip: {
          display: 'none'
        }
      }
    }
  })

  ...

  return (
      <MuiThemeProvider theme={this.getMuiTheme()}>
        <MUIDataTable title={"ACME Employee list"} data={data} columns={columns} options={options} />
      </MuiThemeProvider>
    );

Thank you greg

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pranavtheway picture pranavtheway  路  3Comments

mhmmdakbr picture mhmmdakbr  路  4Comments

harryluo91 picture harryluo91  路  3Comments

NickToye picture NickToye  路  4Comments

Aankhen picture Aankhen  路  3Comments