-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
feature: add visible option to tab #3017
feature: add visible option to tab #3017
Conversation
Code Climate has analyzed commit 7ee7e5e and detected 0 issues on this pull request. View more on Code Climate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution @icaroryan!
Could you also make a PR with the docs, similar to what you did with the panel visible option?
BTW, would it be difficult to add the visible options to the tabs
DSL too?
Hi @Paul-Bob! I'll add documentation for it as soon as I can. As for the tab_group.rb
So I think it'd be just a matter of adding a Is there a reason why we're using |
I think I was rubber-ducking in the message above, I'm sorry lol, the solution was just simply accepting the **args in the argument list for the tabs constructor |
Thank you! I added this task on docs for it avo-hq/docs.avohq.io#250
If you inspect it you'll notice that's still a hash. If you are up to this challenge (add the visible option for tabs) I would be happy to guide you. |
No need to apologize! It looks like this was not such a challenge after all... :D Thank you! |
@Paul-Bob Yea, after looking a bit closer at the code I noticed it was just a naming difference. Thank you for the explanation <3 |
Description
This PR adds a
visible
option to Tab, which should hide all the contained fields as well as the tab itself.This new option shouldn't affect
tabs
onlytab
Checklist:
Screenshots & recording
Screen.Recording.2024-07-17.at.3.55.54.PM.mov
Manual review steps
visible: -> { false }
to atab
Manual reviewer: please leave a comment with output from the test if that's the case.