Open aditir30 opened 2 years ago
I get several errors when trying to run your code, e.g.:
Error: Problem with `filter()` input `..1`.
i Input `..1` is `query_t_df$`TABLE NAME` == tst_tbl_group$`TABLE NAME`[index]`.
x Input `..1` must be of size 4 or 1, not size 0.
Could you create a minimal or reproducible example?
A skim of the code looks fine though. By "elementId is not working as expected", do you mean there are errors like "reactable instance not found" in the JavaScript console? I just realized that the example from https://github.com/glin/reactable/issues/225 doesn't handle the case where a nested table doesn't exist (and trying to search it fails), so that example could definitely be improved.
I'm trying to use Javascript API to setFilter on nested tables. The filter works on the parent table, but not on the child table (I'm trying to keep a track of a table schema per year, therefore year is my filter field). It works using Shiny, but I'm aiming to create a static page. I tried to implement something on the lines of https://github.com/glin/reactable/issues/225 but it doesn't seem to be working.