ClassTelerikUploadBase<TFileInfo, TFileTemplateContext, TFileInfoTemplateContext>
Definition
Namespace:Telerik.Blazor.Components.Common.Upload
Assembly:Telerik.Blazor.dll
Type Parameters:
TFileInfo
TFileTemplateContext
TFileInfoTemplateContext
Syntax:
public abstract class TelerikUploadBase<TFileInfo, TFileTemplateContext, TFileInfoTemplateContext> : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable where TFileInfo : FileInfoBase where TFileTemplateContext : FileTemplateContextBase<TFileInfo> where TFileInfoTemplateContext : FileInfoTemplateContextBase<TFileInfo>
Inheritance: objectComponentBaseBaseComponentTelerikUploadBase<TFileInfo, TFileTemplateContext, TFileInfoTemplateContext>
Derived Classes:
Implements:
Inherited Members
Constructors
TelerikUploadBase()
Declaration
protected TelerikUploadBase()
Properties
Accept
The accept attribute of the file input. Filters the browser file selection dialog.
AllowedExtensions
The list of the allowed file extensions. Used for client-side validation.
AriaDescribedBy
Specifies the aria-describedby attribute of the file selection button.
Declaration
[Parameter]
public string AriaDescribedBy { get; set; }
Property Value
AriaLabelledBy
Specifies the aria-labelledby attribute of the file selection button.
Declaration
[Parameter]
public string AriaLabelledBy { get; set; }
Property Value
Capture
The capture attribute of the file input.
DropZoneId
The id of the external TelerikDropZone component.
Declaration
[Parameter]
public string DropZoneId { get; set; }
Property Value
Enabled
Specifies if the component is enabled.
FileInfoTemplate
Defines the template used to render file information for each file item.
Declaration
[Parameter]
public RenderFragment<TFileInfoTemplateContext> FileInfoTemplate { get; set; }
Property Value
RenderFragment<TFileInfoTemplateContext>
FileTemplate
Defines the template used to render each file item including the actions and progress.
Declaration
[Parameter]
public RenderFragment<TFileTemplateContext> FileTemplate { get; set; }
Property Value
RenderFragment<TFileTemplateContext>
Files
Used to preload a list of files to the Upload component during initialization.
Declaration
public virtual IEnumerable<TFileInfo> Files { get; set; }
Property Value
IEnumerable<TFileInfo>
Id
The id attribute of the file input.
MaxFileSize
Defines the maximum file size in bytes.
Declaration
[Parameter]
public long? MaxFileSize { get; set; }
Property Value
long?
MinFileSize
Defines the minimum file size in bytes.
Declaration
[Parameter]
public long? MinFileSize { get; set; }
Property Value
long?
Multiple
Enables the selection of multiple files. If set to false, only one file can be selected at a time.
SelectFilesButtonTemplate
Defines the content of the "Select files..." button.
Declaration
[Parameter]
public RenderFragment SelectFilesButtonTemplate { get; set; }
Property Value
Methods
OpenSelectFilesDialog()
Opens the browser file selection dialog.
Declaration
public void OpenSelectFilesDialog()