Closed tcetin closed 4 years ago
It gives an error when try to set a fileName.
<button (click)="exporter.exportTable('xlsx','custom_file_name')" mat-raised-button matTooltip="Dışa Aktar" type="button"> Dışa Aktar <mat-icon>file_download</mat-icon> </button> </ng-container>
Here is error: Cannot create property 'type' on string 'custom_file_name'
Cannot create property 'type' on string 'custom_file_name'
Sorry wrong using, it should be exporter.exportTable('xlsx',{fileName:'custom_file_name'}).
exporter.exportTable('xlsx',{fileName:'custom_file_name'})
It gives an error when try to set a fileName.
Here is error:
Cannot create property 'type' on string 'custom_file_name'