File

projects/components/src/widgets/common/file-upload/file-upload.component.doc.ts

Description

The wmFileUpload component defines the file upload widget.

Index

Methods
Inputs

Methods

onBeforeselect
onBeforeselect($event: MouseEvent, widget: any, selectedFiles: any)

Callback function which will be triggered before the file is selected.

Parameters :
Name Type Optional Description
$event MouseEvent No

DOM event on which call back is triggered

widget any No

Instance of the Fleupload widget

selectedFiles any No

List of selected files

Returns : void
onSelect
onSelect($event: MouseEvent, widget: any, files: any)

Callback function which will be triggered when the file is selected.

Parameters :
Name Type Optional Description
$event MouseEvent No

DOM event on which call back is triggered

widget any No

Instance of the Fleupload widget

files any No

List of files to be selected

Returns : void

Inputs

caption

Caption/Label for the fileupload widget.

Bindable: true

Type : string

contenttype

This property specifies the content types that are allowed to be uploaded.

Allowed Values: zip, pdf, rar, txt, ppt, pot, pps, pptx, potx, ppsx, mpg, mp4, mov, avi, mp3, docx, js, md, html, CSS, xlsx, png, jpg, jpeg, file, default

Bindable: true

Type : string

disabled

This property will be used to disable/enable the fileupload widget on the web page.

Bindable: true

Type : boolean

fileuploadmessage

This property allows user to set message of the Fileupload widget.

Bindable: true

Type : string

Default value : 'You can also browse for files'

hint

Hint text is shown for the fileupload widget on hover.

Bindable: true

Type : string

iconclass

CSS class of the icon.

Type : string

Default value : 'wi wi-file-upload'

maxfilesize

This property specifies the max file size that can be uploaded.

Bindable: true

Type : number

multiple

If set to true, multiple file upload is enabled. By default single file upload is enabled

Type : boolean

Default value : false

name

Name of the fileupload widget.

Type : string

show

This property will be used to show/hide the fileupload widget on the web page.

Bindable: true

Type : boolean

Default value : true

tabindex

This property specifies the tab order of the fileupload Widget.

Type : number

Default value : 0

result-matching ""

    No results matching ""