-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add DisplayItemUtility
to centralize static routines
#9
Comments
one purpose for after a grouping is selected then it is always sorted, ascending or descending |
BTW: added |
i am pretty sure that this is as close to /**
* return the data to display a flat list of items
* as nested groups
*/
public static displayInGroups(items: MenuDisplayItemModel[], groupId?: string | number): MenuDisplayItemModel[] {
DisplayItemUtility.setGrouping(items, groupId);
const groups = DisplayItemUtility.group(items, groupId);
return DisplayItemUtility.nestIntoGroups(groups);
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the first purpose for a
DisplayItemUtility
is to centralize how grouping (and sorting of groups) happens forMenuDisplayItemModel
The text was updated successfully, but these errors were encountered: