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

How can i disable/hide a single app-sidebar-nav-item? #64

Closed
Mrutyunjay1992 opened this issue Jun 7, 2019 · 7 comments
Closed

How can i disable/hide a single app-sidebar-nav-item? #64

Mrutyunjay1992 opened this issue Jun 7, 2019 · 7 comments

Comments

@Mrutyunjay1992
Copy link

Before opening an issue:

When asking general "how to" questions:

When reporting a bug, include:

  • Operating system and version (Windows, Mac OS X, Android, iOS, Win10 Mobile)
  • Browser and version (Chrome, Firefox, Safari, IE, MS Edge, Opera 15+, Android Browser)
  • Reduced test cases and potential fixes using CodePen or JS Bin

When suggesting a feature, include:

  • As much detail as possible for what we should add and why it's important to CoreUI
  • Relevant links to prior art, screenshots, or live demos whenever possible
@xidedix
Copy link
Member

xidedix commented Jun 7, 2019

@Mrutyunjay1992
Copy link
Author

Hi @xidedix
I want to hide, not to disable.

@Mrutyunjay1992
Copy link
Author

Hi @xidedix

but

attributes: {hidden: false} or attributes: {hidden: true}

both will hide the nav item.

@xidedix
Copy link
Member

xidedix commented Jun 7, 2019

to unhide an item, remove hidden attribute

You probably have to write an angular service and set up nav config object dynamically, then subscribe the result in default-layout.component.

@xidedix
Copy link
Member

xidedix commented Jun 7, 2019

@Mrutyunjay1992
Ok, we need a way to remove html attribs - like hidden.
We'll release a patch later today.

@xidedix
Copy link
Member

xidedix commented Jun 7, 2019

@Mrutyunjay1992
please update dependencies:

"@coreui/angular": "^2.5.1",

usage:
attributes: {hidden: null}
removes attribute hidden

@Mrutyunjay1992
Copy link
Author

@xidedix

Thanks

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

No branches or pull requests

2 participants