You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I was trying to make the panels of iSEEtree reactive to selections transmitted by other panels, like the RowDataTable. I was struggling because even after adding a .multiSelectionResponsive and .multiSelectionRestricted methods to the custom panel, they would not change upon selecting rows in RowDataTable. An example of this was reported in this iSEEtree issue.
Solution
After a while, I discovered that it would worked if I added the following selection to the .generateOutput method (taken from here):
all_cmds[["select"]] <- .processMultiSelections(x, all_memory, all_contents, panel_env)
if (is.null(panel_env[["row_selected"]])){
panel_env[["se"]] <- se
} else {
panel_env[["se"]] <- se[unlist(panel_env[["row_selected"]]), ]
}
Also, I wanted this specific panel (RowTreePlot) to be reactive only to row selection (and not column selection), so I added the following methods:
Problem
Recently I was trying to make the panels of iSEEtree reactive to selections transmitted by other panels, like the RowDataTable. I was struggling because even after adding a .multiSelectionResponsive and .multiSelectionRestricted methods to the custom panel, they would not change upon selecting rows in RowDataTable. An example of this was reported in this iSEEtree issue.
Solution
After a while, I discovered that it would worked if I added the following selection to the .generateOutput method (taken from here):
Also, I wanted this specific panel (RowTreePlot) to be reactive only to row selection (and not column selection), so I added the following methods:
and hid the column-specific observers:
The fixing commit is available here.
The text was updated successfully, but these errors were encountered: