mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-09-13 18:13:37 +00:00
Co-authored-by: krut_ni <nils.kruthoff@dlr.de> Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
25 lines
899 B
Plaintext
25 lines
899 B
Plaintext
<MudTreeView T="JsonTreeNode"
|
|
Items="@this.items"
|
|
ReadOnly="true"
|
|
Hover="true"
|
|
Dense="true"
|
|
ExpandOnClick="true">
|
|
<ItemTemplate Context="item">
|
|
@if (item.Value is { } node)
|
|
{
|
|
<MudTreeViewItem T="JsonTreeNode"
|
|
Icon="@node.Icon"
|
|
Value="@item.Value"
|
|
Expanded="@item.Expanded"
|
|
CanExpand="@node.Expandable"
|
|
Items="@item.Children">
|
|
<BodyContent>
|
|
<MudText Typo="Typo.body2" Style="font-family: monospace; white-space: pre-wrap; overflow-wrap: anywhere;">
|
|
@node.Text
|
|
</MudText>
|
|
</BodyContent>
|
|
</MudTreeViewItem>
|
|
}
|
|
</ItemTemplate>
|
|
</MudTreeView>
|