dreamRs / shinyWidgets

shinyWidgets : Extend widgets available in shiny
https://dreamrs.github.io/shinyWidgets/
GNU General Public License v3.0
826 stars 153 forks source link

Consider upgrading Air-datepicker to 3.4.0 #668

Closed Mkranj closed 7 months ago

Mkranj commented 7 months ago

More specifically, I would like to use the Croatian locale for accurate day/month names. This translation is already included in the 3.4.0 version of the JS package.

Could this be upgraded in shinyWidgets? From what I see, the current version is 3.2.0.

pvictor commented 7 months ago

Sure, re-install from GitHub then you can use :

library(shiny)
library(shinyWidgets)

ui <- fluidPage(
  airDatepickerInput(
    inputId = "ID",
    label = "In croatian :",
    language = "hr",
    clearButton = TRUE, 
    todayButton = TRUE
  )
)

server <- function(input, output, session) {

}

shinyApp(ui, server)

Victor

Mkranj commented 7 months ago

Thank you very, very much!