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

Disable a item in navIItems #20

Closed
Cesaragsilva opened this issue Aug 25, 2018 · 6 comments
Closed

Disable a item in navIItems #20

Cesaragsilva opened this issue Aug 25, 2018 · 6 comments
Assignees

Comments

@Cesaragsilva
Copy link

Cesaragsilva commented Aug 25, 2018

How Can i disable a item in array navItems? I want see the item in menu, but this item need stay disable for user

@mrholek
Copy link
Member

mrholek commented Aug 26, 2018

It is not possible at the moment, but we will add this feature in future releases. @xidedix

@Cesaragsilva
Copy link
Author

Ok! Thx man!

@Haziqasyraff
Copy link

Try changing the code:

url: '#'

to:

url: '#" disabled'

@hader-araujo
Copy link

url: '#" disabled'

it didn't work

@xidedix
Copy link
Member

xidedix commented Nov 30, 2018

please update

  • @coreui/coreui to 2.1.3
  • @coreui/angular to 2.1.0

usage example (_nav.js):

{
  name: 'Disabled',
  url: '/dashboard',
  icon: 'icon-ban',
  attributes: { disabled: true },
 },

and let us know if it works for you

@Cesaragsilva
Copy link
Author

@xidedix perfect man. Worket for me! THX

@xidedix xidedix closed this as completed Dec 19, 2018
damingerdai added a commit to damingerdai/coreui-angular that referenced this issue Sep 1, 2021
…/lodash-4.17.19

build(deps): bump lodash from 4.17.14 to 4.17.19
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

5 participants