MenuDisplayItemModelExtensions Class
Extensions of MenuDisplayItemModel
Namespace
Songhay.Extensions
Base Types
  • object
graph BT Type-->Base0["object"] Type["MenuDisplayItemModelExtensions"] class Type type-node

Syntax

public static class MenuDisplayItemModelExtensions

Methods

Name Return Value Summary
DefaultOrFirst(IEnumerable<MenuDisplayItemModel>?) MenuDisplayItemModel
Returns the Default Selection IsDefaultSelection == true or the First MenuDisplayItemModel.
static
GetAllBy(MenuDisplayItemModel, Func<MenuDisplayItemModel, bool>) IEnumerable<MenuDisplayItemModel>
Gets all MenuDisplayItemModel by the specified predicate.
static
HasGroupId(MenuDisplayItemModel, string) bool
Returns true when the grouping has the specified identifier.
static
WithChildItem(MenuDisplayItemModel, MenuDisplayItemModel) MenuDisplayItemModel
Fluently returns MenuDisplayItemModel with child item.
static
WithChildItems(MenuDisplayItemModel, IEnumerable<MenuDisplayItemModel>?) MenuDisplayItemModel
Fluently returns MenuDisplayItemModel with child items.
static