Class
PromptBoxFileSelectButtonSettings

File select button settings for the TelerikPromptBox component.

Definition

Constructors

PromptBoxFileSelectButtonSettings()

Declaration

cs-api-definition
public PromptBoxFileSelectButtonSettings()

Properties

Accept

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

Declaration

cs-api-definition
[Parameter]
public string Accept { get; set; }

Property Value

string

AllowedExtensions

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

Declaration

cs-api-definition
[Parameter]
public List<string> AllowedExtensions { get; set; }

Property Value

List<string>

Capture

The capture attribute of the file input.

Declaration

cs-api-definition
[Parameter]
public string Capture { get; set; }

Property Value

string

Enabled

Specifies whether the button is enabled or not.

Declaration

cs-api-definition
[Parameter]
public bool Enabled { get; set; }

Property Value

bool

FillMode

Specifies the fill mode of the button. Default value is Flat.

Declaration

cs-api-definition
[Parameter]
public string FillMode { get; set; }

Property Value

string

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.

Declaration

cs-api-definition
[Parameter]
public object Icon { get; set; }

Property Value

object

MaxFileSize

Defines the maximum file size in bytes.

Declaration

cs-api-definition
[Parameter]
public long? MaxFileSize { get; set; }

Property Value

long?

MinFileSize

Defines the minimum file size in bytes.

Declaration

cs-api-definition
[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.

Declaration

cs-api-definition
[Parameter]
public bool Multiple { get; set; }

Property Value

bool

OnRemove

Triggered when a selected a file is removed.

Declaration

cs-api-definition
[Parameter]
public EventCallback<FileSelectFileInfo> OnRemove { get; set; }

Property Value

EventCallback<FileSelectFileInfo>

OnSelect

Triggered before a file is uploaded.

Declaration

cs-api-definition
[Parameter]
public EventCallback<FileSelectEventArgs> OnSelect { get; set; }

Property Value

EventCallback<FileSelectEventArgs>

Rounded

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

Declaration

cs-api-definition
[Parameter]
public virtual string Rounded { get; set; }

Property Value

string

Size

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

Declaration

cs-api-definition
[Parameter]
public string Size { get; set; }

Property Value

string

ThemeColor

Specifies the theme color of the button. Default value is Base.

Declaration

cs-api-definition
[Parameter]
public virtual string ThemeColor { get; set; }

Property Value

string

Title

Sets the title of the button displayed as tooltip text.

Declaration

cs-api-definition
[Parameter]
public string Title { get; set; }

Property Value

string

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

Dispose(bool)

Declaration

cs-api-definition
protected virtual void Dispose(bool disposing)

Parameters

disposing

bool

OnParametersSetAsync()

Declaration

cs-api-definition
protected override Task OnParametersSetAsync()

Returns

Task

Overrides ComponentBase.OnParametersSetAsync()

SetParametersAsync(ParameterView)

Declaration

cs-api-definition
public override Task SetParametersAsync(ParameterView parameters)

Parameters

parameters

ParameterView

Returns

Task

Overrides ComponentBase.SetParametersAsync(ParameterView)