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

Property Visible in menumodel does not work, Im using menubar #4170

Closed
xyz765 opened this issue Oct 13, 2017 · 1 comment
Closed

Property Visible in menumodel does not work, Im using menubar #4170

xyz765 opened this issue Oct 13, 2017 · 1 comment
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@xyz765
Copy link

xyz765 commented Oct 13, 2017

There is no guarantee in receiving a response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeNG PRO Support where support is provided within 4 business hours

I'm submitting a ... (check one with "x")

[X ] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Current behavior

       { label: 'logout', icon: 'fa-pencil', visible: true, command: () => { this.logout() }},
        {label: 'logout2', icon: 'fa-pencil', visible: false, command: () => { this.logout() }  }

Both are visible

Expected behavior

Only the first one option visible 'logout"

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

  • Angular version: 4.3.6
  • PrimeNG version: 4.2.2
  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Language: [all | TypeScript X.X | ES6/7 | ES5]

  • Node (for AoT issues): node --version =

@sourdoth
Copy link

sourdoth commented Oct 17, 2017

same here, two element show in menu

.ts
this.items = [{label: 'user', routerLink: ['/user-list'] visible:true},{label: 'rol', routerLink: ['/rol-list'] visible:false}];
HTML
<p-panelMenu [model]="items" [multiple]="false">

@cagataycivici cagataycivici self-assigned this Oct 19, 2017
@cagataycivici cagataycivici added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working Status: Pending Review Issue or pull request is being reviewed by Core Team labels Oct 19, 2017
@cagataycivici cagataycivici added this to the 4.2.3 milestone Oct 19, 2017
@cagataycivici cagataycivici added confirmed and removed Status: Pending Review Issue or pull request is being reviewed by Core Team labels Oct 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

3 participants