New to Kendo UI for Vue? Start a free 30-day trial

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

Fires when the user selects files with the Upload button.

restrictions?

UploadFileRestrictions

Sets the restrictions for the files that the user can select.