Class RadzenDropZoneContainer<TItem>
RadzenDropZoneContainer component.
Inheritance
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
[CascadingTypeParameter("TItem")]
public class RadzenDropZoneContainer<TItem> : RadzenComponentWithChildren, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Type Parameters
Name | Description |
---|---|
TItem |
Constructors
RadzenDropZoneContainer()
RadzenDropZoneContainer component.
Declaration
public RadzenDropZoneContainer()
Properties
CanDrop
Gets or sets the function that checks if the item can be dropped in specific zone or item.
Declaration
[Parameter]
public Func<RadzenDropZoneItemEventArgs<TItem>, bool> CanDrop { get; set; }
Property Value
Type | Description |
---|---|
Func<RadzenDropZoneItemEventArgs<TItem>, bool> | The function that checks if the item can be dropped in specific zone. |
Data
Gets or sets the data.
Declaration
[Parameter]
public IEnumerable<TItem> Data { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<TItem> | The data. |
Drop
The event callback raised on item drop.
Declaration
[Parameter]
public EventCallback<RadzenDropZoneItemEventArgs<TItem>> Drop { get; set; }
Property Value
Type | Description |
---|---|
EventCallback<RadzenDropZoneItemEventArgs<TItem>> | The event callback raised on item drop. |
ItemRender
Gets or sets the row render callback. Use it to set row attributes.
Declaration
[Parameter]
public Action<RadzenDropZoneItemRenderEventArgs<TItem>> ItemRender { get; set; }
Property Value
Type | Description |
---|---|
Action<RadzenDropZoneItemRenderEventArgs<TItem>> | The row render callback. |
ItemSelector
Gets or sets the selector function for zone items.
Declaration
[Parameter]
public Func<TItem, RadzenDropZone<TItem>, bool> ItemSelector { get; set; }
Property Value
Type | Description |
---|---|
Func<TItem, RadzenDropZone<TItem>, bool> | The selector function for zone items. |
Template
Gets or sets the template for zone items.
Declaration
[Parameter]
public RenderFragment<TItem> Template { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment<TItem> | The template for zone items. |
Methods
BuildRenderTree(RenderTreeBuilder)
RadzenDropZoneContainer component.
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
RenderTreeBuilder | __builder |
Overrides
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
string |