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

Represents the settings of the Upload button in the PromptBox. Combines Button styling props, upload behavior props, and event callbacks.

Definition

Package:@progress/kendo-vue-conversational-ui

Properties

accept?

string

Sets the file types that the user can select.

disabled?

boolean

Sets whether the Button is disabled (see example). Defaults to false.

fillMode?

"flat" | "link" | "solid" | "outline"

Sets the fill style of the Button.

The available options are:

  • solid
  • outline
  • flat
  • link
Default:

undefined

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. In controlled mode (when you set the attachments prop), use this event to update your state.

Parameters:fileNamestring

Fires when the user selects files with the Upload button. Exposes the newly selected files and all files as event data.

restrictions?

UploadFileRestrictions

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

rounded?

"small" | "medium" | "large" | "none" | "full"

Sets the border radius of the Button.

The available options are:

  • none
  • small
  • medium
  • large
  • circle
  • full
Default:

undefined

size?

"small" | "xs" | "medium" | "large"

Sets the size of the Button.

The available options are:

  • xs
  • small
  • medium
  • large
Default:

undefined

svgIcon?

SVGIcon

Sets an SVGIcon that the Button renders.

themeColor?

"base" | "primary" | "secondary" | "tertiary" | "info" | "success" | "warning" | "error" | "inverse"

Sets the theme color of the Button.

The available options are:

  • base
  • primary
  • secondary
  • tertiary
  • info
  • success
  • warning
  • error
  • inverse
Default:

undefined