[img]https://i.sstatic. net/VeubY.png[/img]
Код: Выделить всё
tabPanel(
"Attribute specification",
tags$main(
id = "element",
class = "container",
# Main panel for displaying outputs ----
mainPanel(
class = "col-xs-12 col-sm-12 col-md-12 inside-tabs",
# Output: Tabset w/ plot, summary, and table ----
tabsetPanel(type = "tabs",
tabPanel(
"Plot",
plotOutput("distPlot3")
),
tabPanel("Summary", verbatimTextOutput("summary")),
tabPanel("Table", tableOutput("table"))
)
)
)
)
Код: Выделить всё
.inside-tabs {
margin-left: -32px;
margin-top: -16px;
}
.inside-tabs > .nav {
margin-left: -30px;
margin-right: -30px;
}
.tab-content {
margin-left: 30px;
margin-right: 30px;
}
.nav-tabs > li > a {
border: 1px solid #ddd;
padding-left: 75px;
padding-right: 75px;
background-color: #fcfcfc;
}
.nav-tabs > li.active > a {
border: 1px solid #ddd;
padding-left: 75px;
padding-right: 75px;
background-color: #ffffff;
border-left: 1px solid #ddd;
border-right: 1px solid #ddd;
border-bottom: none;
border-top: none;
box-shadow: none;
color: #30256c;
font-weight: 300;
}
.nav-tabs>li.active>a:hover, .nav-tabs>li.active>a:focus:hover {
border: none;
color: #ddd;
color: #30256c;
}
.nav-tabs>li.active>a, .nav-tabs>li.active>a:focus {
border: none;
-webkit-box-shadow: none;
box-shadow: none;
color: #30256c;
}

результат HTML-кода:
Код: Выделить всё
[list]
[*]
[url=#tab-5738-1]Plot[/url]
[*]
[url=#tab-5738-2]Summary[/url]
[*]
[url=#tab-5738-3]Table[/url]
[/list]
У вас есть идеи? Кроме того, как мне реализовать вторую панель вкладок, где вы можете выбрать страну?

Подробнее здесь: https://stackoverflow.com/questions/656 ... shiny-apps