diff --git a/api-generator/components/fileupload.js b/api-generator/components/fileupload.js index 33ec8e724..7b30267b4 100644 --- a/api-generator/components/fileupload.js +++ b/api-generator/components/fileupload.js @@ -113,6 +113,24 @@ const FileUploadProps = [ default: "true", description: "Whether to cancel the upload button." }, + { + name: "chooseIcon", + type: "string", + default: "pi pi-plus", + description: "Icon of the choose button." + }, + { + name: "uploadIcon", + type: "string", + default: "pi pi-upload", + description: "Icon of the upload button." + }, + { + name: "cancelIcon", + type: "string", + default: "pi pi-times", + description: "Icon of the cancel button." + }, { name: "style", type: "any", diff --git a/src/components/fileupload/FileUpload.d.ts b/src/components/fileupload/FileUpload.d.ts index d01fbab3a..24f3aef6c 100755 --- a/src/components/fileupload/FileUpload.d.ts +++ b/src/components/fileupload/FileUpload.d.ts @@ -178,6 +178,18 @@ export interface FileUploadProps { * Default value is true. */ showCancelButton?: boolean | undefined; + /** + * Icon of the choose button. + */ + chooseIcon?: string | undefined; + /** + * Icon of the upload button. + */ + uploadIcon?: string | undefined; + /** + * Icon of the cancel button. + */ + cancelIcon?: string | undefined; /** * Inline style of the component. */ diff --git a/src/components/fileupload/FileUpload.vue b/src/components/fileupload/FileUpload.vue index 2c69e8512..5b9a500b0 100755 --- a/src/components/fileupload/FileUpload.vue +++ b/src/components/fileupload/FileUpload.vue @@ -3,11 +3,11 @@