Пример #1
0
 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);
     }
 }
Пример #2
0
 internal void Register(AccordionItem item)
 {
     accordionItems.Add(item);
 }