Skip to content

Resetting inputs #177

@nteetor

Description

@nteetor

Neither shiny nor yonder have a reset input feature. Shinyjs does provide a reset feature, but the approach is hard-coded and only works on shiny's default inputs. It would be useful if developers had a more generic tool,

resetInput(id = , choices = , values = )

This function could accept a regular expression or multiple regexs as choices or values. This might also better suite a generic updateInput() function. In this case, the reset function would look more like,

resetInput(id = )

id would accept a character vector of ids or perhaps a string marked as a regular expression.

Next steps

  • Add default field to input classes
  • Input classes save the selected value specified in *Input() functions as their default
  • New reset() method for input classes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions