Material-table: Add icon before title

Created on 20 Jun 2019  路  2Comments  路  Source: mbrn/material-table

Hi everyone how can i add an icon before title ?

like this
image

help wanted

Most helpful comment

Yeah, it is possible.

Example:

components={{
  Toolbar: props => (
    <div style={{display: 'flex', alignItems: 'center', }}>
      <YourIcon />
      <MTableToolbar {...props} />
    </div>
  ),
}}

You can add other styles or components to your liking in toolbar.

All 2 comments

Yeah, it is possible.

Example:

components={{
  Toolbar: props => (
    <div style={{display: 'flex', alignItems: 'center', }}>
      <YourIcon />
      <MTableToolbar {...props} />
    </div>
  ),
}}

You can add other styles or components to your liking in toolbar.

It works thanks @AugustoCalaca

Was this page helpful?
0 / 5 - 0 ratings