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

Add visibility to tabs based on condition? #58

Closed
scaventum opened this issue Oct 16, 2019 · 4 comments
Closed

Add visibility to tabs based on condition? #58

scaventum opened this issue Oct 16, 2019 · 4 comments
Assignees
Labels
request New feature or request

Comments

@scaventum
Copy link

Can we add condition per tab which can be hidden/shown based on condition e.g. user role?

@newtongamajr
Copy link

Put your tabs array into a protected or private method and populate this array depending on which Tabs you wanna show. It works fine for me!

@marianne-fullstack
Copy link

Hi @newtongamajr do you have any sample code? Thanks!

@RVxLab
Copy link
Collaborator

RVxLab commented Oct 19, 2020

Hmm, I quite like this idea actually. This could be done with a when method similar to the query builder.

I'll try to take a look this week or if someone wants to take a crack at it and make a PR please feel free to do so.

@RVxLab RVxLab self-assigned this Oct 19, 2020
@RVxLab RVxLab added the request New feature or request label Oct 19, 2020
@RVxLab RVxLab mentioned this issue Jan 30, 2021
@RVxLab
Copy link
Collaborator

RVxLab commented Jan 30, 2021

This has been implemented with the new Tab object (see showIf and showUnless). It's available in the master branch and will be released with 1.4.0.

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

No branches or pull requests

4 participants