如何让“日历”的R闪亮的应用程序?

问题描述 投票:0回答:1

有对Web应用程序进行日历很多JS库。

如何使标签在日期谷歌日历的R闪亮应用优雅的日历解决方案是怎样的?

谢谢!

r shiny calendar label
1个回答
3
投票

看一看在fullcalendar包在github上,或者你可以Add a Google calendar to your website

library(shiny)
library(fullcalendar)

data = data.frame(title = paste("Event"[![enter image description here][2]][2], 1:3),
                  start = c("2017-03-01", "2017-03-01", "2017-03-15"),
                  end = c("2017-03-02", "2017-03-04", "2017-03-18"),
                  color = c("red", "blue", "green"))

ui <- fluidPage(
  column(6,
         fullcalendarOutput("calendar", width = "100%", height = "200px")
  )
)

server <- function(input, output) {
  output$calendar <- renderFullcalendar({
    fullcalendar(data)
  })
}

shinyApp(ui, server)

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.