mui-datatables
mui-datatables copied to clipboard
print is not customizable
Expected Behavior
Handler should exists to pass your own print button function Also print of table should show something more like a table, currently it converts each row into table of two coluimns: column names and row values.
Current Behavior
No handler to customize print Print converts each row into table of two coluimns: column names and row values.
Your Environment
Tech | Version |
---|---|
Material-UI | latest |
MUI-datatables | latest |
React | latest |
browser | chrome |
node | 15.0.1 |
os | linux ubuntu 16.04 |
Does print
mean the print in the toolbar?
3.7.5 version, print icon can be customize.
ref : https://github.com/gregnb/mui-datatables/blob/master/examples/customize-toolbar-icons/index.js
Do you want to change the behavior?
I want to customize not just icon but what handler does. Also default print of mui-datatable looks really strange.
Same here, looking for a way to customize print function just like onDownload.
I not working on project using it anymore, will close it, please re-open if it relevant for anyone else.
In case anyone stumbles across this like I did: my solution was to disable the table's built-in print and use the customToolbar
option to append a print button that uses window.print()
.