Path: redb/redb.PropsEditor/Components/NestedArrayEditor.razor
Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb
Page: https://redbase.app/src/dev-2026-12-06/redb/redb.PropsEditor/Components/NestedArrayEditor.razor
----
@using redb.PropsEditor.Services
@using Microsoft.FluentUI.AspNetCore.Components
@inject PropsMetadataService MetadataService
@* Renders an array of objects with expandable items *@
@for (var i = 0; i < items.Count; i++)
{
var index = i;
var item = items[index];
[@index]
@if (!IsReadOnly)
{
X
}
}
}
@code {
///
/// The element type of the array.
///
[Parameter, EditorRequired]
public required Type ElementType { get; set; }
///
/// The current array value.
///
[Parameter]
public Array? Value { get; set; }
///
/// Called when the value changes.
///
[Parameter]
public EventCallback OnValueChanged { get; set; }
///
/// Whether the editor is read-only.
///
[Parameter]
public bool IsReadOnly { get; set; }
private bool isExpanded = false;
private List