Closed benjaminmilcic closed 1 year ago
This issue is stale because it has been open at least 30 days with no activity. Comment or this issue will be closed in 14 days.
This issue was closed because it has been stalled for 14 days with no activity.
I have the following:
<mat-cell *matCellDef="let element; let i=index"> <button mat-icon-button matTooltip="Download Vcard" vcdDownloadVCard [generateVCardFunction]="generateVCardOnTheFly">
public generateVCardOnTheFly = (index:number): VCard => { // TODO: Generate the VCard before Download return { name: { firstNames: this.teamMembers[index].firstName, lastNames: this.teamMembers[index].lastName, }, }; };
How can I give a parameter to [generateVCardFunction]="generateVCardOnTheFly" ? Something like [generateVCardFunction]="generateVCardOnTheFly(i)"
Thanks for your help.