Mui-datatables: How to add an Icon in column in MUI Data table

Created on 5 Apr 2019  路  5Comments  路  Source: gregnb/mui-datatables

I want to add an Icon in column and I have tired to add icon in options but It was not getting an Icon. Can anyone help me out
Thanks

All 5 comments

Which kind of icon do you want to display? Inside the body cells or in the header?

The example you mention with selectableRowsOnClick=true option produce weird behavior.
If we click on the button it also selects the row which is not what we want right!

@patelmilanun This is consequence of how events work in the browser. If you want to prevent the click event of a button from traveling up the DOM tree (and activating the row click listener) then you have to stop the propagation of the event with e.stopPropagation().

@patelmilanun This is consequence of how events work in the browser. If you want to prevent the click event of a button from traveling up the DOM tree (and activating the row click listener) then you have to stop the propagation of the event with e.stopPropagation().

Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kylane picture kylane  路  3Comments

harryluo91 picture harryluo91  路  3Comments

mhmmdakbr picture mhmmdakbr  路  4Comments

ronaiza-cardoso picture ronaiza-cardoso  路  3Comments

alexanderwhatley picture alexanderwhatley  路  4Comments