Display only months in dateRangeInput or dateInput for a shiny app [R programming]

前端 未结 4 1644
时光取名叫无心
时光取名叫无心 2020-12-08 05:35

I am using shiny for creating a web app. One of my plots uses only months of a particular year to generate the points in the plot.

I want the users to select only th

4条回答
  •  死守一世寂寞
    2020-12-08 06:29

    To whom wants to use the codes in the previous answer: you need to use the updated datePickerDependecy (which can be taken from https://github.com/rstudio/shiny/blob/master/R/input-date.R).

    Currently it is:

    datePickerDependency <- htmlDependency(
    "bootstrap-datepicker", "1.6.4", c(href = "shared/datepicker"),
    script = "js/bootstrap-datepicker.min.js",
    stylesheet = "css/bootstrap-datepicker3.min.css",
    # Need to enable noConflict mode. See #1346.
    head = "")
    

    I post this remark as an answer due to not enough reputation :(

提交回复
热议问题