내 반짝이는 대시 보드에는 checkboxInput이 있으며 상자 항목의 제목 내에서 바로 정렬하려고합니다. 작은 상자 (너비 6)의 경우 정렬이 적절하지만 너비가 12 인 상자의 경우 열 값을 다시 정렬하는 경우 체크 상자 입력이 상자의 중앙에 유지됩니다. 코드는 다음과 같습니다.div align right checkbox 빛나는 대시 보드의 입력이 작동하지 않습니다.
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 인수를 사용하거나 사용하지 않고 원하는 출력을 얻지 못했습니다.
감사합니다 ... 이러한 옵션을 알지 못했습니다 .... 감사합니다. Lovely, 수정 사항은 앱에있는 모든 탭과 상자에 적용되었습니다. – Apricot