blazor-devexpress-dot-blazor-dot-dxaccordion-8d4355e5.md
Fires after an item was collapsed.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[Parameter]
public Action<AccordionItemStateChangeEventArgs> AfterCollapse { get; set; }
The AfterCollapse event's data class is AccordionItemStateChangeEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| CausedByAPI | Obsolete. Specifies whether an event was triggered by user action or from code. |
| ItemInfo | Returns information about an item related to the event. Inherited from AccordionItemEventArgs. |
| Reason | Returns the reason why the Accordion item’s expanded state changed. |
The AfterCollapse event fires after an item was collapsed. The following code handles this event:
<DxAccordion AfterCollapse="@AfterCollapse">
@* ... *@
</DxAccordion>
@code {
void AfterCollapse(AccordionItemStateChangeEventArgs args) {
// your code
}
}
See Also