I'm working with a table containing objects and I need to download each one by clicking on a download button. Download Img
<wb-button
name="submitButton"
variant="primary"
size="s"
style="width:100%"
(click)="downloadSdo(sdo)"
i18n >Download</wb-button
>
My question is, what should the function in my file.ts look like?
downloadSdo(sdo: SoftwareDataObject)
{
return sdo.id;
}
Another approach could be placing the download buttons above the table so that users can choose which table to download when clicked. But how can this be implemented? I am new to this and would appreciate guidance.