R 将 actionButton 对齐到底部
R Alignment of actionButton to the bottom
我想在 flexdashboard
的侧边栏中创建一个 actionButton
。
但是,我想在底部对齐这个按钮。这应该悬停在底部上方几个像素处。我必须在 style
-命令中更改什么才能实现此目的?
非常感谢!
---
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}
```
style="background-color: #ec7063 ; border-radius: 10px !important; border: none; position:absolute; bottom: 5px;"
我想在 flexdashboard
的侧边栏中创建一个 actionButton
。
但是,我想在底部对齐这个按钮。这应该悬停在底部上方几个像素处。我必须在 style
-命令中更改什么才能实现此目的?
非常感谢!
---
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}
```
style="background-color: #ec7063 ; border-radius: 10px !important; border: none; position:absolute; bottom: 5px;"