如何在选项卡/选项卡集上添加下拉菜单[rmarkdown/bootstrap] [英] How to add dropdown menu on tab / tabset [rmarkdown / bootstrap]
本文介绍了如何在选项卡/选项卡集上添加下拉菜单[rmarkdown/bootstrap]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Bootswatch的文档建议我可以使用选项卡集中选项卡中的下拉菜单:
Documentation for Bootswatch suggests I can use a dropdown menu from a tab in a tabset:
如何使用Rmarkdown做到这一点?我尝试过:
How can I achieve this with Rmarkdown? I've tried:
# SECTION 1 {.tabset .tabset-fade}
## Section 1.1
## Section 1.2 {????something here?????}
### Section 1.2.1 <<<<<<<<< want this to appear under the dropdown menu
推荐答案
现在在 rmarkdown 的开发版本中可用,您可以通过devtools::install_github("rstudio/rmarkdown")
安装该版本.要添加下拉菜单,必须将.tabset-dropdown
添加到类标题中,如下所示:
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
这篇关于如何在选项卡/选项卡集上添加下拉菜单[rmarkdown/bootstrap]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文