toastui
toastui copied to clipboard
Calendar ID+"_add" not possible anymore after toastui > 0.2.1
I am aware that the JS-library has changed, but I couldnt find any solution to this. I need to create custom Popups to create additional calendar entries. This example app used to work with v0.2.1 and I dont know how to migrate it..
Those issues seem related: https://github.com/dreamRs/toastui/issues/8 https://github.com/dreamRs/toastui/issues/36
library(shiny)
library(toastui)
ui <- fluidPage(
calendarOutput("calendar")
)
server <- function(input, output, session) {
output$calendar <- renderCalendar({
calendar(NULL, view = "month",
navigation = TRUE,taskView = F, height = 500,
useCreationPopup = FALSE, isReadOnly = FALSE)
})
observeEvent(input$calendar_add, {
print("input$calendar_id_click")
inp <- input$calendar_id_click
removeUI("#calendradd")
shiny::insertUI(selector = "#calendar", where = "beforeBegin",
ui = selectInput("asd123", label = "Select", choices = 1:9))
})
}
shinyApp(ui, server)