We're using p-fileUpload from PrimeNG 1.0.0-beta.16
I want to customize the buttons. They now have as labels 'Choose', 'Upload' and 'Cancel'. How do I change the labels?
Another related question. After selecting some files the filenames are shown and the file sizes. How to change the format of the file size? It now shows '877.271 KB'. The 3 digits are a bit confusion. How to change it to only show 1 digit: '877.2 KB'
I tried ith templating:
<template let-file pTemplate type="file">
<div>{{file.name}}</div>
<div>{{file.size}}</div>
</template>
And I now have full control of the file size and I can format it as I wish, but I don't have the remove button again. I need to re-implement that as well. It all looks a bit overkill for only changing the format of the file size.
cancelLabel="Annuleren"
to the HTML tag I can now (after upgrading to the latest PrimeNG) change the labels on the buttons. But I still can't override the formatSize function. I tried this(formatSize)="formatSizeCustom"
but that didn't work. – Paul Meems