Download File component

UI Components for Angular
Post Reply
lchebbi
Posts: 3
Joined: 22 Mar 2018, 16:40

22 Mar 2018, 16:46

Hi all,

I can't find in the store of components the "File Download". Only the "File Upload" is available.
I was wondering if there is any way to customize the current upload component to add the download button ?
Is it planned in your roadmap ? If so, in which version it will be released ?

Thanks a lot.
Regards,

lchebbi
Posts: 3
Joined: 22 Mar 2018, 16:40

27 Mar 2018, 10:57

Hi all,

Still need an answer.
Any help is highly appreciated :)
Thanks

JACrazy
Posts: 20
Joined: 19 Mar 2018, 17:48

27 Mar 2018, 16:13

You can add a custom button into the toolbar to be inline with the upload buttons. You will have to write typescript to do the actual downloading.

Code: Select all

<p-fileUpload #fileInput name="fileIcon" url="someurl">
    <ng-template pTemplate="toolbar">
    	<button pButton type="button" label="Download Files"
    	(click)="Downloadfiles()">
    	</button>
    </ng-template> 
</p-fileUpload>

verynear
Posts: 2
Joined: 06 Dec 2017, 21:13

09 Aug 2018, 22:55

Is there any way to change the icon of the main 'Choose' button? I can add an additional button with ng-template, but can't seem to access the existing choose button?

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests