-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
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
defaultfield to input classes - Input classes save the
selectedvalue specified in*Input()functions as their default - New
reset()method for input classes