|
|
@ -26,15 +26,22 @@ public partial class GridRowContent : ComponentBase
|
|
|
|
{
|
|
|
|
{
|
|
|
|
get
|
|
|
|
get
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return new CssBuilder("row")
|
|
|
|
CssBuilder cssBuilder = new CssBuilder("row");
|
|
|
|
.AddClass("collapsed", Collapsable)
|
|
|
|
|
|
|
|
.AddClass("show", (Collapsable ? Parent?.CollapsedItemShown : false))
|
|
|
|
cssBuilder.AddClass("collapsed", Collapsable);
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
|
|
if (Parent is not null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
cssBuilder.AddClass("show", (Collapsable ? Parent.CollapsedItemShown : false));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return cssBuilder.Build();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
if (Parent is not null)
|
|
|
|
if (Parent is not null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (Parent.Children is null) Parent.Children = new();
|
|
|
|
if (Parent.Children is null) Parent.Children = new();
|
|
|
|