Defines the settings of the file select functionality in the Chat.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChatFileSelectSettings : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseChatFileSelectSettings
Implements:
Inherited Members
Constructors
public ChatFileSelectSettings()
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides:
protected override void OnInitialized()
Overrides:
Properties
The accept attribute of the file input. Filters the browser file selection dialog.
[Parameter]
public string Accept { get; set; }
The list of the allowed file extensions. Used for client-side validation.
[Parameter]
public List<string> AllowedExtensions { get; set; }
The capture attribute of the file input.
[Parameter]
public string Capture { get; set; }
Specifies the fill mode of the button.
[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.
[Parameter]
public object Icon { get; set; }
Defines the maximum file size in bytes.
[Parameter]
public long? MaxFileSize { get; set; }
Defines the minimum file size in bytes.
[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.
[Parameter]
public bool Multiple { get; set; }
OnRemove
EventCallback<FileSelectFileInfo>
Triggered when a selected a file is removed.
[Parameter]
public EventCallback<FileSelectFileInfo> OnRemove { get; set; }
Triggered before a file is uploaded.
[Parameter]
public EventCallback<FileSelectEventArgs> OnSelect { get; set; }
Specifies the roundness of the button. Default value is Full.
[Parameter]
public string Rounded { get; set; }
Specifies the size of the button. Default value is Small.
[Parameter]
public string Size { get; set; }
Specifies the theme color of the button.
[Parameter]
public string ThemeColor { get; set; }