Description Usage Arguments Details Value Author(s) See Also
Generate and execute commands to process multiple selections, creating variables in the evaluation environment with the identity of the selected rows or columns.
1 | .processMultiSelections(x, all_memory, all_contents, envir)
|
x |
An instance of a Panel class. |
all_memory |
A named list of Panel instances containing parameters for the current app state. |
all_contents |
A named list of arbitrary contents with one entry per panel. |
envir |
The evaluation environment.
This is assumed to already contain |
This function is primarily intended for use by developers of new panels.
It should be called inside .generateOutput
to easily process row/column multiple selections.
Developers can check whether row_selected
or col_selected
exists in envir
to determine whether any row or column selection was performed (and adjust the behavior of .generateOutput
accordingly).
envir
is populated with one, none or both of col_selected
and/or row_selected
,
depending on whether x
is receiving a multiple selection on the rows and/or columns.
The return value is the character vector of commands required to construct those variables.
Aaron Lun
.generateOutput
and its related generic .renderOutput
, where this function should generally be used.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.