Skip to content
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

A property named visible should be passed to NavItemsService optionally to show/hide the item #4814

Closed
mehmet-erim opened this issue Jul 20, 2020 · 0 comments · Fixed by #4815

Comments

@mehmet-erim
Copy link
Contributor

NavItem interface will be updated as shown below:

import { Type } from '@angular/core';

export interface NavItem {
  id: string | number;
  component?: Type<any>;
  html?: string;
  action?: () => void;
  order?: number;
  requiredPolicy?: string;
+  visible?: () => boolean;
}

If you don't pass the visible property, it will be set as () => true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant