@using MoonCore.Blazor.Tailwind.Forms @using MoonlightServers.Shared.Enums @typeparam TPropertyType where TPropertyType : class, MoonlightServers.Shared.Interfaces.IStarVariable @inherits BaseFormComponent>
@foreach (var variable in Binder.Value) {
}
@code { private async Task AddVariable() { Binder.Value.Add(Activator.CreateInstance()); await InvokeAsync(StateHasChanged); } private async Task DeleteVariable(TPropertyType variable) { Binder.Value.Remove(variable); await InvokeAsync(StateHasChanged); } }