ClassChatFileSelectSettings
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
ChatFileSelectSettings()
Declaration
public ChatFileSelectSettings()
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.
Capture
The capture attribute of the file input.
FillMode
Specifies the fill mode of the button.
Declaration
[Parameter]
public string FillMode { get; set; }
Property Value
Icon
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.
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.
OnRemove
Triggered when a selected a file is removed.
Declaration
[Parameter]
public EventCallback<FileSelectFileInfo> OnRemove { get; set; }
Property Value
EventCallback<FileSelectFileInfo>
OnSelect
Triggered before a file is uploaded.
Declaration
[Parameter]
public EventCallback<FileSelectEventArgs> OnSelect { get; set; }
Property Value
ThemeColor
Specifies the theme color of the button.
Declaration
[Parameter]
public string ThemeColor { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
Dispose(bool)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
disposing
OnInitialized()
Declaration
protected override void OnInitialized()
Overrides