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

External Export Option

Open Edisonsan opened this issue 7 years ago • 10 comments

There is some option to add a new dropdown export option like a EXCEL then use another library to generate the excel using the data filtered or result of search?

Edisonsan avatar Sep 26 '19 21:09 Edisonsan

Yes: https://material-table.com/#/docs/features/export. Basically you can export whatever is currently visible in the table or do some monkey-patching and decide what gets exported yourself.

jayarjo avatar Sep 27 '19 05:09 jayarjo

image

I mean how to add a new option there, to Export as XLS or PDF using another component or function for that purpose. I mean create an override as ToolBar override to create a new option to export external function with the filtered rows.

Edisonsan avatar Sep 28 '19 20:09 Edisonsan

You can add custom actions: https://material-table.com/#/docs/features/actions. Check a Free Action Example specifically.

jayarjo avatar Sep 29 '19 05:09 jayarjo

You can add custom actions: https://material-table.com/#/docs/features/actions. Check a Free Action Example specifically.

You Can Add External Button Not Inside Export's Button

kwasik-com avatar Oct 18 '19 13:10 kwasik-com

Bad News, Why not give the opportunity to add other buttons to an existing dropdown?

leonidkuznetsov18 avatar Feb 27 '20 16:02 leonidkuznetsov18

The built in Export button only have one option but still show a dropdown, which could not be modified and set disableScrollLock to false. This needs more work.

ChanhLy avatar Mar 06 '20 09:03 ChanhLy

You can add custom actions: https://material-table.com/#/docs/features/actions. Check a Free Action Example specifically.

You Can Add External Button Not Inside Export's Button

How can we get the filtered/sorted/searched data there in custom free action component?

ervikashkumar avatar Apr 16 '20 08:04 ervikashkumar

@ervikashkumar u can't atm and this is so sad XD

Jsalvat avatar Jun 09 '20 07:06 Jsalvat

Has this feature been added yet? I am unable to add options to the export dropdown

TamjidTayeb avatar Jan 03 '21 22:01 TamjidTayeb

Any news about the feature ? i would like to add some options to the export dropdown too

HugoBaspin avatar Jun 21 '21 09:06 HugoBaspin