DxAccordion.GetItemsInfo(Func<IAccordionItemInfo, Boolean>) Method
Returns information about the specified items.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
public IEnumerable<IAccordionItemInfo> GetItemsInfo(
Func<IAccordionItemInfo, bool> predicate
)
Parameters
Name | Type | Description |
---|---|---|
predicate | Func<IAccordionItemInfo, Boolean> | Specified items. |
Returns
Type | Description |
---|---|
IEnumerable<IAccordionItemInfo> | Information about the found items. |
Remarks
Use the GetItemsInfo
method to obtain information about several specified items.
The following code snippet returns information about items that contain Grid
in their Text:
<DxButton Click=@OnClick>Get info</DxButton>
<DxAccordion @ref=Accordion>
<Items>
<DxAccordionItem Text="Grid" />
<DxAccordionItem Text="Navigation and Layout">
<Items>
<DxAccordionItem Text="Accordion" />
<DxAccordionItem Text="Stack Layout" />
</Items>
</DxAccordionItem>
<DxAccordionItem Text="Data Editors" />
<DxAccordionItem Text="Scheduler" />
</Items>
</DxAccordion>
@code {
DxAccordion Accordion;
void OnClick() {
var Items = Accordion.GetItemsInfo(x => x.Text.Contains("Grid"));
}
}
See Also