material-table icon indicating copy to clipboard operation
material-table copied to clipboard

How Can I add one more option to the ToolBar

Open Prasad-YS opened this issue 7 years ago • 3 comments

I want to add my own custom CSV export to toolbar, anyway to achieve this ? Please help me if it is feasible

Prasad-YS avatar Feb 13 '19 05:02 Prasad-YS

  1. Currently you can do with workaround. Copy toolbar code and change what you want. Then override toolbar component with yours'.

  2. Add a actions which has isFreeAction: true property. You can export your data in onClick of this button.

mbrn avatar Feb 13 '19 05:02 mbrn

Thanks @mbrn , Thanks for your quick response, I'm working on your suggestion

Prasad-YS avatar Feb 13 '19 06:02 Prasad-YS

Hello @mbrn, can you give an example? I'm trying to implement a refresh button to refresh only the table data and i can't keep the default toolbar options and add that icon at the same time.

I'm trying with following code: image

xStorm111 avatar Jan 10 '20 15:01 xStorm111