export type TopMenuDropdownParam = {
label: string
routerLink?: string
+ isDisplayed?: () => boolean // Default: () => true
children?: {
label: string
routerLink: string
-
iconName?: GlobalIconName
+
+ isDisplayed?: () => boolean // Default: () => true
}[]
}
this.modalService.dismissAll()
}
+ isDisplayed (obj: { isDisplayed?: () => boolean }) {
+ if (typeof obj.isDisplayed !== 'function') return true
+
+ return obj.isDisplayed()
+ }
+
private updateChildLabels (path: string) {
this.suffixLabels = {}