Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Is it possible to hide/show an area by using a Sheetworker?

1604703141

Edited 1604703171
Leothedino
Sheet Author
Hey guys, I know that showing and hiding a container with a checkbox is easy and simple with CSS, but my sheet is currently using blended buttons (e.g. skill names that you can click for a result). Because of this, I need to turn an action button into a trigger for showing/hiding a <div> area (a skill that has additional options available to it). How would I write this code out? I've scoured the Sheetworker & Button wiki pages, but i'm pretty out of my depth with Java and JQuery techniques and I can't seem to make my own function for this. Any help at all would be appreciated. Thanks
1604703623
Andreas J.
Forum Champion
Sheet Author
Translator
What you're looking for: <a href="https://wiki.roll20.net/CSS_Wizardry#Tabs" rel="nofollow">https://wiki.roll20.net/CSS_Wizardry#Tabs</a>
1604709156

Edited 1604709319
Leothedino
Sheet Author
Ah, I saw this, didn't think it applied. So you recommend making one of the two areas act like a hidden/blank tab space? Just cycle through the two? Can that even be done with only one button? The example shows a button for each tab/state, I need to work out how to go between two with one... hmm.
Darn it, I am being silly. There is a checkbox example further down, I was reading the part about tabs getting myself confused. Nevermind, thanks! :D&nbsp;