DxAccordionItem.Click Event
Fires when a user clicks the Accordion item.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
#Declaration
[Parameter]
public EventCallback<AccordionItemClickEventArgs> Click { get; set; }
#Event Data
The Click event's data class is AccordionItemClickEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Item |
Returns information about an item related to the event.
Inherited from Accordion |
Mouse |
The Blazor’s built-in Mouse |
#Remarks
Use the DxAccordionItem.Click
event to react to click on the specific item. The following code snippet handles the Click
event:
<DxAccordion>
<Items>
<DxAccordionItem Click=@OnClick Text="Navigation and Layout" />
@* ... *@
</Items>
</DxAccordion>
@code {
void OnClick(AccordionItemClickEventArgs args) {
var Item = args.ItemInfo;
}
}
If you want to have one event handler for all items, use the DxAccordion.Click event.