Open trafficonese opened 6 months ago
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)
Hello, There's an example here on how tu use a custom popup to create an entry : https://github.com/dreamRs/toastui/blob/master/inst/examples/calendar-custom-create.R
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