mirror of
https://github.com/radzenhq/radzen-blazor.git
synced 2026-02-04 05:35:44 +00:00
* Add a Footer template to RadzenDropZone * Add header over the Footer Template Demo * rename FooterTemplate to Footer
20 lines
614 B
Plaintext
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>
|
|
}
|