Changing the default tab in a panel-tabset #6668
Replies: 4 comments 5 replies
-
| I am not sure there is a way in Quarto to change the default tab by using as in rmarkdown the keyword/class  @dragonstyle In the current implementation of the tabset, do you think it could be done or worth adding? | 
Beta Was this translation helpful? Give feedback.
-
| I opened an issue for enhancement: | 
Beta Was this translation helpful? Give feedback.
-
| I have a related suggestion for enhancement: could you make it possible to find (in Python) which tab is the active one in a .panel-tabset. | 
Beta Was this translation helpful? Give feedback.
-
| @kmkramer23 (or anyone else that might have suggestions) - Is it possible to share the JavaScript workaround in the meantime? I'm trying to change the default tab shown in a tabset and currently having no luck. | 
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I was trying to set another tab besides the first tab as the default tab in a panel-tabset when the html document launches. In Rmarkdown this can be done by adding the {.active} attribute to a tab section but that did not appear to work when rendering in Quarto. I got around the problem by writing some javascript code and putting it in the include-after-body to switch tabs on load.
Is there a better way of doing this inside a quarto document?
Beta Was this translation helpful? Give feedback.
All reactions