私の光沢のあるダッシュボードにはcheckboxInputがあり、ボックスアイテムのタイトル内で右揃えしようとしています。より小さいボックス(幅6)の場合、アラインメントは適切ですが、カラムの値を再調整するための幅が12のボックスの場合、チェックボックスの入力はボックスの中央に残ります。コードは次のとおりです。div align right checkboxInputは光沢のあるダッシュボードで動作しません
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)
ボックスの右端に[レポートに追加]チェックボックスを使用します。 float、direction引数の有無にかかわらず、目的の出力を得られませんでした。
ありがとうございます...これらのオプションを知りませんでした....ありがとう、もう一度トン。素敵な、私はアプリで持っているすべてのタブとボックスに補正が適用されました。 – Apricot