1
바닥 글과 페이지 중앙의 반짝이는 응용 프로그램 대시 보드에 바닥 글을 넣으려고합니다. 그러나 그것은 몸의 중심에오고 있습니다. 당신은 tagList
에 dashbordPage
을 포장 한 후 같은 tags$footer
을 배치 할 수 있습니다반짝이는 응용 프로그램 대시 보드의 바닥 글 맞춤
library(shiny)
library(shinydashboard)
library(DT)
library(ggvis)
library(shiny)
ui <- dashboardPage(
dashboardHeader(title = "Dashboard"),
dashboardSidebar(sidebarMenu(
menuItem("Instructions", tabName = "genIns", icon = icon("info-circle")),
menuItem("Data", tabName = "data", icon = icon("table"))
)),
dashboardBody(
tabItems(
# First tab content
tabItem(tabName = "genIns",
fluidPage(
titlePanel("General Instruction will go here"))
),
# Second tab content
tabItem(tabName = "data",
sliderInput("bins",
"Number of bins:",
min = 1,
max = 50,
value = 30),
plotOutput("distPlot")
)
),
tags$footer("My footer", align = "center")
)
)
server.ui
shinyServer(function(input, output, session) {
output$distPlot <- renderPlot({
x <- faithful[, 2] # Old Faithful Geyser data
bins <- seq(min(x), max(x), length.out = input$bins + 1)
# draw the histogram with the specified number of bins
hist(x, breaks = bins, col = 'darkgray', border = 'white')
})
})
우리는뿐만 아니라 대시 보드의 사이드 바 이상 바닥 글을 넣을 수 있습니다? – Rajan
물론 바닥 글의 스타일에'z-index : 1000; '을 추가하면 쉽게 할 수 있습니다. 예를 업데이트했습니다. (사이드 바 또한이 속성을 가지고 있으며 810으로 설정되어 있습니다. 그보다 더 큰 숫자를 선택해야했습니다) [여기 Z- 인덱스에 대한 자세한 내용] (http://www.w3schools.com/cssref/pr_pos_z-index.asp) –
하나 더 문제를 업로드했습니다. 도와 주시겠습니까? – Rajan