ClassPromptBoxFileSelectButtonSettings
File select button settings for the TelerikPromptBox component.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class PromptBoxFileSelectButtonSettings : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBasePromptBoxFileSelectButtonSettings
Implements:
Inherited Members
Constructors
PromptBoxFileSelectButtonSettings()
Declaration
public PromptBoxFileSelectButtonSettings()
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.
Enabled
Specifies whether the button is enabled or not.
FillMode
Specifies the fill mode of the button. Default value is Flat.
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
Rounded
Specifies the roundness of the button. Default value is null.
Declaration
[Parameter]
public virtual string Rounded { get; set; }
Property Value
ThemeColor
Specifies the theme color of the button. Default value is Base.
Declaration
[Parameter]
public virtual 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
SetParametersAsync(ParameterView)
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
parameters
Returns
Overrides