File

projects/components/widgets/input/file-upload/src/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
Type : string

Caption/Label for the fileupload widget.

Bindable: true

cleariconclass
Type : string

CSS class for the clear icon.

cleariconhint
Type : string
Default value : 'Clear'

This property specifies the hint for clear icon

contenttype
Type : string

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

disabled
Type : boolean

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

Bindable: true

fileuploadmessage
Type : string
Default value : 'You can also browse for files'

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

Bindable: true

hint
Type : string

Hint text is shown for the fileupload widget on hover.

Bindable: true

iconclass
Type : string
Default value : 'wi wi-file-upload'

CSS class of the icon.

maxfilesize
Type : number

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

Bindable: true

multiple
Type : boolean
Default value : false

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

name
Type : string

Name of the fileupload widget.

show
Type : boolean
Default value : true

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

Bindable: true

tabindex
Type : number
Default value : 0

This property specifies the tab order of the fileupload Widget.

result-matching ""

    No results matching ""