internal async Task NotifyChangeAsync(AccordionItem changedItem) { if (ExpandMode == AccordionExpandMode.Single) { foreach (var accordionItem in accordionItems.Where(item => item.Expanded)) { await accordionItem.Collapse(); } } else { await InvokeAsync(StateHasChanged); } }
internal void Register(AccordionItem item) { accordionItems.Add(item); }