【问题标题】:R Alignment of actionButton to the bottomR actionButton与底部对齐
【发布时间】: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


    【解决方案1】:
      style="background-color: #ec7063 ; border-radius: 10px !important; border: none; position:absolute; bottom: 5px;"
    

    【讨论】:

      猜你喜欢
      • 2020-12-28
      • 2019-07-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-06-11
      • 2015-12-27
      相关资源
      最近更新 更多