How do I customize uploaded image UI

UI Components for Angular
Post Reply
yashwp
Posts: 1
Joined: 08 Aug 2018, 11:46

08 Aug 2018, 11:51

Code: Select all

<p-fileUpload class="fo-14 m-0 p-0" multiple="true" name="myfile[]" accept="image/*"
                      [auto]="true" customUpload="true" chooseLabel="Choose Image(s)" (uploadHandler)="uploadImage($event)">
   <ng-template let-file pTemplate="file">
        <!--How do display images which are uploaded in img tag?-->
     </ng-template>
 </p-fileUpload>
        
Can anybody show me the example?

padagalingam
Posts: 9
Joined: 14 Dec 2018, 09:04

14 Dec 2018, 12:49

I achieved using scss. please refer the code.

.ui-fileupload {

.ui-fileupload-content {

.ui-fileupload-row > div:first-child:empty:after {
content: url(imagePath);;
}
}
}

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 15 guests