I have a slider that looks like this:
The code for the slider is as follows:
UI:
fluidRow(column(12,
uiOutput("slider")))
SERVER:
mindate <- "2011-04-01"
maxdate <- "2017-03-31"
output$slider <- renderUI({
sliderInput("timeperiod", "Time Period:",
min=as.Date(mindate, origin='1970-01-01'),
max=as.Date(maxdate, origin='1970-01-01'),
value=c(as.Date(mindate, origin='1970-01-01'),
as.Date(maxdate, origin='1970-01-01')),
timeFormat='%b-%y', dragRange = TRUE, width='700px')
})
Currently if you move the slider inputs they can be put as the same value like this:
Is there a way so that I can always keep the upper value of the slider a certain amount of ticks above the bottom value of the slider?