Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resetting inputs #177

Open
3 tasks
nteetor opened this issue Jan 31, 2020 · 1 comment
Open
3 tasks

Resetting inputs #177

nteetor opened this issue Jan 31, 2020 · 1 comment

Comments

@nteetor
Copy link
Owner

nteetor commented Jan 31, 2020

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 nteetor changed the title Allow inputs to reset Resetting inputs Feb 13, 2020
@ghost
Copy link

ghost commented Feb 13, 2020

an updateFileInput would be nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant