【发布时间】:2021-11-16 01:32:18
【问题描述】:
我想在flexdashboard 的侧边栏中创建一个actionButton。
但是,我想在底部对齐这个按钮。这应该悬停在底部上方几个像素处。我必须在 style-command 中进行哪些更改才能实现此目的?
非常感谢!
---
title: "Untitled"
output:
flexdashboard::flex_dashboard:
orientation: columns
vertical_layout: fill
runtime: shiny
---
```{r setup, include=FALSE}
library(flexdashboard)
library(shiny)
library(htmltools)
```
## Column {.sidebar}
```{r}
actionButton("show", HTML("Test button 123456789"),
style="background-color: #ec7063 ; border-radius: 10px !important;
border: none")
observeEvent(input$show, {
showModal(modalDialog(
title = "Send me a message",
"Text Text Text",
easyClose = TRUE,
footer = modalButton("Schließen")
))
})
```
Column {data-width=650}
-----------------------------------------------------------------------
### Chart A
```{r}
```
【问题讨论】:
标签: r shiny flexdashboard