Skip to contents

Return Types

dateInput

Date

filterInput(
    x = Sys.Date() + 0:9,
    inputId = "id",
    label = "Pick a date:"
)


POSIXt

filterInput(
    x = Sys.time() + as.difftime(0:9, units = "days"),
    inputId = "id",
    label = "Pick a date:"
)



dateRangeInput

Date

  • range = TRUE
filterInput(
    x = Sys.Date() + 0:9,
    inputId = "id",
    label = "Pick a date range:",
    range = TRUE
)


POSIXt

  • range = TRUE
filterInput(
    x = Sys.time() + as.difftime(0:9, units = "days"),
    inputId = "id",
    label = "Pick a date range:",
    range = TRUE
)



numericInput

numeric

filterInput(
    x = 0:9,
    inputId = "id",
    label = "Pick a number:"
)



radioButtons

character

  • radio = TRUE
filterInput(
    x = letters[1:10],
    inputId = "id",
    label = "Pick a letter:",
    inline = TRUE,
    radio = TRUE
)


factor

  • radio = TRUE
filterInput(
    x = as.factor(letters[1:10]),
    inputId = "id",
    label = "Pick a letter:",
    inline = TRUE,
    radio = TRUE
)


list

  • radio = TRUE
filterInput(
    x = as.list(letters[1:10]),
    inputId = "id",
    label = "Pick a letter:",
    inline = TRUE,
    radio = TRUE
)



selectInput

character

filterInput(
    x = letters[1:10],
    inputId = "id",
    label = "Pick a letter:"
)


factor

filterInput(
    x = as.factor(letters[1:10]),
    inputId = "id",
    label = "Pick a letter:"
)


list

filterInput(
    x = as.list(letters[1:10]),
    inputId = "id",
    label = "Pick a letter:"
)



selectizeInput

character

  • selectize = TRUE
filterInput(
    x = letters[1:10],
    inputId = "id",
    label = "Pick a letter:",
    selectize = TRUE
)


factor

  • selectize = TRUE
filterInput(
    x = as.factor(letters[1:10]),
    inputId = "id",
    label = "Pick a letter:",
    selectize = TRUE
)


list

  • selectize = TRUE
filterInput(
    x = as.list(letters[1:10]),
    inputId = "id",
    label = "Pick a letter:",
    selectize = TRUE
)



sliderInput

numeric

  • slider = TRUE
filterInput(
    x = 0:9,
    inputId = "id",
    label = "Pick a number:",
    slider = TRUE
)



textAreaInput

character

  • textbox = TRUE
  • area = TRUE
filterInput(
    x = letters[1:10],
    inputId = "id",
    label = "Type many letters[1:10]:",
    textbox = TRUE,
    area = TRUE
)



textInput

character

  • text = TRUE
filterInput(
    x = letters[1:10],
    inputId = "id",
    label = "Type a letter:",
    textbox = TRUE
)


Input Types


character

selectInput

filterInput(
    x = letters[1:10],
    inputId = "id",
    label = "Pick a letter:"
)


selectizeInput

  • selectize = TRUE
filterInput(
    x = letters[1:10],
    inputId = "id",
    label = "Pick a letter:",
    selectize = TRUE
)


radioButtons

  • radio = TRUE
filterInput(
    x = letters[1:10],
    inputId = "id",
    label = "Pick a letter:",
    inline = TRUE,
    radio = TRUE
)


textInput

  • textbox = TRUE
filterInput(
    x = letters[1:10],
    inputId = "id",
    label = "Type a letter:",
    textbox = TRUE
)


textAreaInput

  • textbox = TRUE
  • area = TRUE
filterInput(
    x = letters[1:10],
    inputId = "id",
    label = "Type many letters[1:10]:",
    textbox = TRUE,
    area = TRUE
)



Date

dateInput

filterInput(
    x = Sys.Date() + 0:9,
    inputId = "id",
    label = "Pick a date:"
)


dateRangeInput

  • range = TRUE
filterInput(
    x = Sys.Date() + 0:9,
    inputId = "id",
    label = "Pick a date range:",
    range = TRUE
)



factor

selectInput

filterInput(
    x = as.factor(letters[1:10]),
    inputId = "id",
    label = "Pick a letter:"
)


selectizeInput

  • selectize = TRUE
filterInput(
    x = as.factor(letters[1:10]),
    inputId = "id",
    label = "Pick a letter:",
    selectize = TRUE
)


radioButtons

  • radio = TRUE
filterInput(
    x = as.factor(letters[1:10]),
    inputId = "id",
    label = "Pick a letter:",
    inline = TRUE,
    radio = TRUE
)



list

selectInput

filterInput(
    x = as.list(letters[1:10]),
    inputId = "id",
    label = "Pick a letter:"
)


selectizeInput

  • selectize = TRUE
filterInput(
    x = as.list(letters[1:10]),
    inputId = "id",
    label = "Pick a letter:",
    selectize = TRUE
)


radioButtons

  • radio = TRUE
filterInput(
    x = as.list(letters[1:10]),
    inputId = "id",
    label = "Pick a letter:",
    inline = TRUE,
    radio = TRUE
)



numeric

numericInput

filterInput(
    x = 0:9,
    inputId = "id",
    label = "Pick a number:"
)


sliderInput

  • slider = TRUE
filterInput(
    x = 0:9,
    inputId = "id",
    label = "Pick a number:",
    slider = TRUE
)



POSIXt

dateInput

filterInput(
    x = Sys.time() + as.difftime(0:9, units = "days"),
    inputId = "Id",
    label = "Pick a date:"
)


dateRangeInput

  • range = TRUE
filterInput(
    x = Sys.time() + as.difftime(0:9, units = "days"),
    inputId = "Id",
    label = "Pick a date range:",
    range = TRUE
)