[Question]: `datasets` argument in the server is deprecated and will be removed in the next release. Please use `data` instead.
datasets is an object of FilteredData R6 class with plenty of useful methods, for example clear_filter_states.
Is there a way to mimic the behaviour of that method but using data object?
The goal is to be able to restore original state of data, when apart from teal filtering options there are other filtering mechanics (click on the bar of the graph, filters table) in custom module.
does data usage give similar possibilities as datasets?
Code of Conduct
- [x] I agree to follow this project's Code of Conduct.
Contribution Guidelines
- [x] I agree to follow this project's Contribution Guidelines.
Security Policy
- [x] I agree to follow this project's Security Policy.
Hey @strebuh. It looks to me that you just need to add filter_panel_api to the list of argument of your module' server component. This way you will receive FilterPanelAPI class of object that would allow you to interact the way you want.
This is a relevant documentation: https://insightsengineering.github.io/teal/latest-tag/reference/teal_modules.html#arg-server
Let me know if that helps!