PromptBoxUploadButton
Component
Represents the Upload button of the Kendo UI for Vue PromptBox component. Gets its default props from the parent PromptBox.
Definition
Package:@progress/kendo-vue-conversational-ui
Properties Interface:PromptBoxUploadButtonProps
Syntax:
vue
<PromptBoxUploadButton
v-bind="uploadButtonProps"
:multiple="true"
:accept="'.pdf,.csv'"
:restrictions="{ maxFileSize: 5242880 }"
/>
Properties
accept?
string
Sets the file types that the user can select.
multiple?
boolean
Lets the user select more than one file at a time.
Default:
true
onRemoveAttachment?
(fileName: string) => void
Fires when the user clicks the remove button of an attachment.
Parameters:fileNamestring
onSelectAttachments?
(event: PromptBoxSelectAttachmentsEvent) => void
Fires when the user selects files with the Upload button.
Parameters:eventPromptBoxSelectAttachmentsEvent
restrictions?
UploadFileRestrictions
Sets the restrictions for the files that the user can select.