yonder icon indicating copy to clipboard operation
yonder copied to clipboard

Resetting inputs

Open nteetor opened this issue 6 years ago • 1 comments

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

nteetor avatar Jan 31 '20 01:01 nteetor

an updateFileInput would be nice!

ghost avatar Feb 13 '20 15:02 ghost