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

Pass a search widget string into the global filter #334

Open
LELULAS opened this issue Aug 18, 2023 · 1 comment
Open

Pass a search widget string into the global filter #334

LELULAS opened this issue Aug 18, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@LELULAS
Copy link

LELULAS commented Aug 18, 2023

When using reactable in a shiny app, I'd like to hide the table until a user inputs a global search into a search widget. How can I pass the string from the search widget into the global search of the reactable?

@glin
Copy link
Owner

glin commented Aug 20, 2023

If you have the search widget in Shiny, there's not a way to set the global search value via Shiny directly, but that could definitely be a future enhancement.

For now, the only way to do this is using the JavaScript API - reactable.setSearch(). There's a quick demo in custom search input example, but hooking this up to Shiny would take a bit more effort. I can't remember how to do this off the top of my head, but it's probably described in the JavaScript Events in Shiny doc page.

@glin glin added the enhancement New feature or request label Aug 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants