Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Export Some columns like action columns where i have a button edit,add, etc... #24

Closed
CedLP opened this issue Nov 22, 2019 · 1 comment
Labels
question Further information is requested

Comments

@CedLP
Copy link

CedLP commented Nov 22, 2019

Hello, can i have a possibility to export a datatable without a some colomuns like actions colums?
If yes how can i do this please?

Thanks

@HalitTalha HalitTalha added the question Further information is requested label Nov 23, 2019
@HalitTalha
Copy link
Owner

HalitTalha commented Nov 23, 2019

You can hide the columns you want with their column index.

For example hiding the columns at 0 and 3 index:
<mat-table matTableExporter [dataSource]="dataSource" #exporter="matTableExporter" [hiddenColumns]="[0,3]"></mat-table>

You can also check the stackblitz demo:
https://stackblitz.com/edit/mte-demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants