Class
DropZoneBase

Definition

Namespace:Telerik.Blazor.Components.Common.Dropzones

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public abstract class DropZoneBase : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentDropZoneBase

Derived Classes: TelerikDropZone

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members BaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.BuildRenderTree(RenderTreeBuilder)ComponentBase.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnParametersSetAsync()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.SetParametersAsync(ParameterView)

Constructors

DropZoneBase()

Declaration

cs-api-definition
protected DropZoneBase()

Properties

DragOverClass

The class that will be rendered on the drop zone. when a file is dragged over it. Use this class to conditionally style the component during dragover.

Declaration

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

Property Value

string

Enabled

Specifies whether the drop zone is enabled. Default value is true.

Declaration

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

Property Value

bool

Height

Defines the height of the drop zone.

Declaration

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

Property Value

string

Id

The id of the drop zone. Assign the same value to the DropZoneId of the corresponding TelerikUpload and/or TelerikFileSelect component.

Declaration

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

Property Value

string

Multiple

Specifies whether the drop zone allows multiple files drop.

Declaration

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

Property Value

bool

Template

The content rendered inside the drop zone. Passing a fragment will completely replace the content inside the drop zone.

Declaration

cs-api-definition
[Parameter]
public RenderFragment Template { get; set; }

Property Value

RenderFragment

Width

Defines the width of the drop zone.

Declaration

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

Property Value

string

Methods

Dispose()

Declaration

cs-api-definition
public override void Dispose()

Overrides BaseComponent.Dispose()

OnAfterRenderAsync(bool)

Declaration

cs-api-definition
protected override Task OnAfterRenderAsync(bool firstRender)

Parameters

firstRender

bool

Returns

Task

Overrides BaseComponent.OnAfterRenderAsync(bool)