Skip to content

SidebarNav - subcomponent: item #43

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

Closed
marciokuroki opened this issue Oct 18, 2018 · 3 comments · Fixed by #45
Closed

SidebarNav - subcomponent: item #43

marciokuroki opened this issue Oct 18, 2018 · 3 comments · Fixed by #45
Labels
enhancement New feature or request

Comments

@marciokuroki
Copy link

I'm using SidebarNav, implement a navConfig strutured as the document show us. But I'd like to use "target: '_blank'" in a item to open the link in a new tab. How could I do that?

@DannyAllegrezza
Copy link

Looking for assistance here as well. I've tried a few different approaches, but none of them seem to work out nicely. All I want to do is generate an anchor tag with the target='_blank' attribute attached to it. 👎

@xidedix xidedix added the enhancement New feature or request label Nov 5, 2018
@xidedix xidedix mentioned this issue Nov 6, 2018
@xidedix
Copy link
Member

xidedix commented Nov 6, 2018

hi @marciokuroki @DannyAllegrezza

please update:

  • @coreui/coreui to 2.1.0
  • @coreui/react to 2.1.0

usage example (_nav.js):

{
  name: 'Try CoreUI PRO',
  url: 'https://coreui.io/pro/react/',
  icon: 'cui-layers icons',
  variant: 'danger',
  attributes: { target: '_blank', rel: "noopener" },
},

@marciokuroki
Copy link
Author

@xidedix thanks!

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

Successfully merging a pull request may close this issue.

3 participants