Skip to content

Commit 82ac628

Browse files
feat: hidden nav link item
1 parent 86017e7 commit 82ac628

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

projects/components/src/navigation/navigation-list.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ import {
4343
4444
<ng-container *ngSwitchCase="'${NavItemType.Link}'">
4545
<ht-nav-item
46+
*ngIf="!(item.hidden ?? false)"
4647
[navItemViewStyle]="this.navViewStyle"
4748
[config]="item"
4849
[active]="item === activeItem"

projects/components/src/navigation/navigation.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export interface NavItemLinkConfig {
1010
iconSize?: IconSize;
1111
label: string;
1212
matchPaths: string[]; // For now, default path is index 0
13+
hidden?: boolean;
1314
features?: string[];
1415
replaceCurrentHistory?: boolean;
1516
isBeta?: boolean;

0 commit comments

Comments
 (0)