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

Missing routerLink on tab as documented #17505

Closed
WillooWisp opened this issue Jan 27, 2025 · 2 comments
Closed

Missing routerLink on tab as documented #17505

WillooWisp opened this issue Jan 27, 2025 · 2 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@WillooWisp
Copy link

According to this documentation it should be possible to bind to [routerLink] https://primeng.org/tabs#tabmenu, but I cannot see that the property even exists.

@github-actions github-actions bot added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 27, 2025
@shaman-apprentice
Copy link
Contributor

If I may sneak in a feature request into this issue: It would be nice, if the tab would be a real link if used with routerLink, so I could open it in a new browser tab.

As a workaround manul adding a link feels unecessary clumpsy to me:

<p-tab [value]="tab.link" [routerLink]="tab.link">
  <a [routerLink]="tab.link" style="color: unset; text-decoration: none;">
    {{ tab.label }}
  </a>
</p-tab>

@WillooWisp
Copy link
Author

My mistake, did not import RouterLink.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

2 participants