Files
radzen-blazor/Radzen.Blazor/RadzenDropZone.razor
Marco Papst 1423454191 Add a Footer template to RadzenDropZone (#1503)
* Add a Footer template to RadzenDropZone

* Add header over the Footer Template Demo

* rename FooterTemplate to Footer
2024-05-15 09:53:08 +03:00

20 lines
614 B
Plaintext

@inherits RadzenComponentWithChildren
@typeparam TItem
@if(Visible)
{
<div @ref="@Element" style="@Style" @attributes="Attributes" class="@GetCssClass()" id="@GetId()" @ondrop="OnDrop" @ondragover="OnDragOver" @ondragleave="OnDragLeave">
@ChildContent
@foreach (var item in Items)
{
var result = ItemAttributes(item);
<CascadingValue Value=@item>
<CascadingValue Value=this>
<RadzenDropZoneItem TItem="TItem" Visible="@result.Item1.Visible" Attributes="@result.Item2" />
</CascadingValue>
</CascadingValue>
}
@Footer
</div>
}