New to Telerik UI for BlazorStart a free 30-day trial

Defines the settings of the file select functionality in the Chat.

Definition

Constructors

C#
public ChatFileSelectSettings()

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

C#
protected virtual void Dispose(bool disposing)
Parameters:disposingbool
C#
protected override void OnInitialized()

Overrides: ComponentBase.OnInitialized()

Properties

The accept attribute of the file input. Filters the browser file selection dialog.

C#
[Parameter]
public string Accept { get; set; }

The list of the allowed file extensions. Used for client-side validation.

C#
[Parameter]
public List<string> AllowedExtensions { get; set; }

The capture attribute of the file input.

C#
[Parameter]
public string Capture { get; set; }

Specifies the fill mode of the button.

C#
[Parameter]
public string FillMode { get; set; }

Specifies the icon rendered in the button. You can use either a predefined Telerik Icon or a custom one. Refer to Icons - Documentation for more information on how icons work.

C#
[Parameter]
public object Icon { get; set; }

Defines the maximum file size in bytes.

C#
[Parameter]
public long? MaxFileSize { get; set; }

Defines the minimum file size in bytes.

C#
[Parameter]
public long? MinFileSize { get; set; }

Enables the selection of multiple files. If set to false, only one file can be selected at a time.

C#
[Parameter]
public bool Multiple { get; set; }

OnRemove

EventCallback<FileSelectFileInfo>

Triggered when a selected a file is removed.

C#
[Parameter]
public EventCallback<FileSelectFileInfo> OnRemove { get; set; }

Triggered before a file is uploaded.

C#
[Parameter]
public EventCallback<FileSelectEventArgs> OnSelect { get; set; }

Specifies the roundness of the button. Default value is Full.

C#
[Parameter]
public string Rounded { get; set; }

Specifies the size of the button. Default value is Small.

C#
[Parameter]
public string Size { get; set; }

Specifies the theme color of the button.

C#
[Parameter]
public string ThemeColor { get; set; }

Sets the title of the button displayed as tooltip text.

C#
[Parameter]
public string Title { get; set; }