DanielHabenicht / ngx-vcard

MIT License
15 stars 14 forks source link

how to give a parameter to [generateVCardFunction]="generateVCardOnTheFly" ? #730

Closed benjaminmilcic closed 1 year ago

benjaminmilcic commented 1 year ago

I have the following:

<mat-cell *matCellDef="let element; let i=index"> <button mat-icon-button matTooltip="Download Vcard" vcdDownloadVCard [generateVCardFunction]="generateVCardOnTheFly">

</button>

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.

github-actions[bot] commented 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.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 14 days with no activity.