replace file upload button with image

UI Components for Angular
Post Reply
garethkusky
Posts: 1
Joined: 15 Nov 2018, 09:16

15 Nov 2018, 09:25

I am new to angular and primeng.

I am using <p-fileupload> button to manage the upload of an image related to a profile. What i would like to do is to display the upload button when there is no available image already on the profile, but if there is an image to display that instead of the button. That is easy enough and working. What i would like to happen is for a click on the image to load the pfileupload utility just as if someone clicked on the button.

What is the best way to do this? Is there a way to replace the fileupload button with an image?

thanks.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 32 guests