-
-
Notifications
You must be signed in to change notification settings - Fork 978
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 Request: Dropdown Options in Tabsets #1116
Comments
Hi, I wrote a bit of css/js that allows you to do that. You only have to add the source file to the header of your document (adjust the path if
And add the class
The
And a minimum working example
|
This has been supported in the current development version: devtools::install_github('rstudio/rmarkdown') |
@bschneidr We are working on upgrading Bootstrap v3 to v4 now (#1688). Unfortunately your CSS code doesn't work with Bootstrap 4. I wonder if you have time to revisit this feature and see if you could make it work for Bootstrap 4. You can start with |
Hello guys, |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
For tabsets created in an HTML document by rmarkdown, tabs are by default displayed horizontally, like so:
However, with a little bit of tweaking of the HTML, you can turn the tabset into a dropdown menu:
Instead of having to tweak the HTML after Pandoc produces the HTML file, would it be possible to use rmarkdown to specify a dropdown layout? Perhaps the result could look something like this?
For reference, the rmarkdown for this example is as follows:
And the HTML produced for the tabset is this:
which can be replaced by the following HTML to produce a dropdown menu:
The text was updated successfully, but these errors were encountered: