You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Components/Components/TreeView/TreeView.razor

19 lines
489 B

@namespace Connected.Components
@inherits UIComponent
@typeparam T
<ul @attributes="UserAttributes" class="@Classname" style="@Stylename">
<CascadingValue Value="@MudTreeRoot" IsFixed="true">
@if (ItemTemplate != null && Items != null)
{
@foreach (var item in Items)
{
@ItemTemplate(item)
}
}
else if (ChildContent != null)
{
@ChildContent
}
</CascadingValue>
</ul>