Skip to content

Commit

Permalink
remove UI date slider, fixes #4 (#20)
Browse files Browse the repository at this point in the history
Co-authored-by: South <[email protected]>
Co-authored-by: Milan Malfait <[email protected]>
  • Loading branch information
3 people authored Aug 14, 2024
1 parent eaa6363 commit ce78099
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions R/mod_daterange.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#' @importFrom shiny NS tagList
mod_date_range_ui <- function(id) {
ns <- NS(id)
# TODO: decide on which option to keep; dateRangeInput or sliderInput

tagList(
dateRangeInput(
ns("date_range"), "Date range",
Expand All @@ -17,12 +17,6 @@ mod_date_range_ui <- function(id) {
end = as.Date("2024-08-01"),
startview = "decade",
format = "yyyy-mm",
),
sliderInput(ns("slider"), "Date range:",
min = as.Date("2019-04-01", "%Y-%m-%d"),
max = as.Date("2024-08-01", "%Y-%m-%d"),
value = c(as.Date("2019-04-01"), as.Date("2024-08-01")),
timeFormat = "%Y-%m"
)
)
}
Expand Down

0 comments on commit ce78099

Please sign in to comment.