Aller au contenu principal

LgInputFile

Module : Lagoon.UI
Namespace : Lagoon.UI.Components
Catégorie : InputFile
Hérite de : LgAriaComponentBase

A file input component.

Paramètres​

ParamètreTypeDescription
ActionMessagestringGets or sets the action message.
AllowDirectoriesboolGets or sets the flag allowing the directories' selection.
AllowDuplicateboolGet or the the flag wich define if user can select two files with a same file name
AllowMultipleFilesboolGets or sets the flag allowing multiple files upload.
AllowedFileExtensionsList<string>Gets or sets a list of allowed file extensions.
AllowedFileTypesList<string>Gets or sets a list of allowed file types.
AuthenticateboolIf set to true (the default) then the POST request will add the authorization header with a bearer token. If false no authorization header will be sent.
CssClassstringGets or sets the CSS class
DownloadModeDownloadModeGet or set the download mode. Default is DownloadMode.Direct
FileCardTemplateRenderFragment<IFileListEntry>Gets or sets the file card template used to display selected files to upload.
FileListLabelstringGet or set the text used before the file list (default is lgFileUploadLinkedFileList dictionnary key)
IgnoreFormTrackingbool
LabelstringGets or sets the label.
LabelContentRenderFragmentGets or sets the render fragment to customize the label.
LinkedFilesUristringGets or sets the linkef files URL.
MaxUploadSizelongGets or sets the maximum total size in bytes for a each upload.
OnChangeEventCallback<IFileListEntry[]>Gets or sets the onchange event callback.
OnDeleteCompleteEventCallback<LinkedFile>Event fired when a file is successfully deleted from the server
OnErrorHandlingEventCallback<Exception>Event fired when an error occurs when file are uploaded
OnTokenRequestedFunc<Task<string>>Get or set a callback to provide a token to used in the http request authorization header
OnUploadCompleteEventCallbackEvent fired when file are successfully uploaded to the server
ShowFileListboolGets or sets the flag used to display the file list.
ShowUploadboolGet or set the flag used to active / desactive the upload functionnality
ShowUploadSpeedboolGet or set the flag used to display upload speed progression
UploadIconNamestringGet or set the upload icon to display
UploadModeUploadModeUpload behavior (default is Automatic). UploadMode enum.
UploadUristringGets or sets the upload URL endpoint.
UploadedFailureMessagestringGets or sets the uploaded message for failure.
UploadingMessagestringGets or sets the uploading message.
VerticalDisplayboolGet or set the flag which define de layout mode (true by default)

Paramètres en cascade​

ParamètreTypeDescription
FormTrackerLgFormTrackerPotential form tracker defined by an ancestor

Paramètres hérités de LgAriaComponentBase​

ParamètreTypeDescription
AriaLabelstringGets or sets aria label
AriaLabelledBystringGets or sets id of component for aria label