Hi Yamini,
Greetings from Syncfusion support.
Based on your query, we suspect that you need to perform download action of File Manager in an external button. You can achieve your requirement by using the downloadFiles method of File Manager as demonstrated in the below code snippet,
App.component.html
<button ejs-button (click)="downloadfile($event)" class="e-primary">
Click here to down the selected file
</button>
<div class="sample-container">
<ejs-filemanager #filemanager id="overview" [ajaxSettings]="ajaxSettings">
</ejs-filemanager>
</div>
-----------------------------------------------------------------------
App.component.ts
export class AppComponent {
downloadfile(args) {
var selectedfiles = this.file.getSelectedFiles();
if (selectedfiles.length > 0) {
this.file.downloadFiles();
}
} |
In the sample, we have downloaded the selected files of File Manager in an external button click. Similarly, you can download the files according to your requirement.
Please find the below sample for your reference,
Please get back to us if you need further assistance.
Regards,
Shalini M.