projects/components/widgets/input/file-upload/src/file-upload.component.doc.ts
The wmFileUpload component defines the file upload widget.
Methods |
Inputs |
onBeforeselect | ||||||||||||||||
onBeforeselect($event: MouseEvent, widget: any, selectedFiles: any)
|
||||||||||||||||
Callback function which will be triggered before the file is selected.
Parameters :
Returns :
void
|
onSelect | ||||||||||||||||
onSelect($event: MouseEvent, widget: any, files: any)
|
||||||||||||||||
Callback function which will be triggered when the file is selected.
Parameters :
Returns :
void
|
caption |
Type : string
|
Caption/Label for the fileupload widget. Bindable: |
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: Bindable: |
disabled |
Type : boolean
|
This property will be used to disable/enable the fileupload widget on the web page. Bindable: |
fileuploadmessage |
Type : string
|
Default value : 'You can also browse for files'
|
This property allows user to set message of the Fileupload widget. Bindable: |
hint |
Type : string
|
Hint text is shown for the fileupload widget on hover. Bindable: |
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: |
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: |
tabindex |
Type : number
|
Default value : 0
|
This property specifies the tab order of the fileupload Widget. |