How to add dropdown menu on tab / tabset [rmarkdown / bootstrap]

前端 未结 2 850
小蘑菇
小蘑菇 2021-02-10 00:47

Documentation for Bootswatch suggests I can use a dropdown menu from a tab in a tabset:

How can I achieve this with Rmarkdown? I\'ve tried:

# SE         


        
2条回答
  •  野的像风
    2021-02-10 01:31

    This is now available within the development version of rmarkdown, which you can install this via devtools::install_github("rstudio/rmarkdown"). To add a dropdown menu, you must add .tabset-dropdown to the class header as follows:

    ---
    output: html_document
    ---
    
    # Heading {.tabset .tabset-dropdown}
    
    ## Dropdown 1
    
    ## Dropdown 2
    
    ## Dropdown 3 
    
    ## Dropdown 4
    

提交回复
热议问题