私の光沢のあるダッシュボードにはcheckboxInputがあり、ボックスアイテムのタイトル内に揃えようとしています. 小さいボックス (幅 6) の場合、配置は適切ですが、幅 12 のボックスの場合、列の値をどのように再配置しても、チェックボックスの入力はボックスの中央に残ります。コードは次のとおりです。
library(shiny)
library(shinydashboard)
ui <- dashboardPage(
skin = "green",
dashboardHeader(
title = "TEST", titleWidth = 225
),
dashboardSidebar(
menuItem("TRENDS", tabName = "vactr", icon = shiny::icon("line-chart"))
),
dashboardBody(
tabItems(
tabItem(
tabName = "vactr",
fluidRow(
box(
width = 12, status = "info", title =
fluidRow(
column(6, "Trend - Usage of space",br(),
div(downloadLink("downloadspacetrend", "Download this chart"), style = "font-size:70%", align = "left")),
column(6,
div(checkboxInput(inputId = "spacetrendcheck", "Add to reports", value = FALSE),style = "font-size:70%",float = "right", align = "right", direction = "rtl"))
),
div(plotOutput("spacetrend"), width = "100%", height = "400px", style = "font-size:90%;"),
uiOutput("spacetrendcomment")
)
)
)
)
)
)
server <- function(input, output, session) {
}
shinyApp(ui = ui, server = server)
[レポートに追加] チェック ボックスをボックスの右端に配置します。フロート、方向引数の有無にかかわらず使用しようとしましたが、目的の出力が得られませんでした。