21 lines
796 B
Plaintext
21 lines
796 B
Plaintext
/*
|
|
UI annotations for the Browse GenreHierarchy App
|
|
*/
|
|
using AdminService from '@capire/bookshop';
|
|
|
|
annotate AdminService.GenreHierarchy with @Aggregation.RecursiveHierarchy #GenreHierarchy: {
|
|
$Type : 'Aggregation.RecursiveHierarchyType',
|
|
NodeProperty : ID, // identifies a node
|
|
ParentNavigationProperty: parent // navigates to a node's parent
|
|
};
|
|
|
|
annotate AdminService.GenreHierarchy with @Hierarchy.RecursiveHierarchy #GenreHierarchy: {
|
|
$Type : 'Hierarchy.RecursiveHierarchyType',
|
|
LimitedDescendantCount: LimitedDescendantCount,
|
|
DistanceFromRoot : DistanceFromRoot,
|
|
DrillState : DrillState,
|
|
Matched : Matched,
|
|
MatchedDescendantCount: MatchedDescendantCount,
|
|
LimitedRank : LimitedRank
|
|
};
|