Element's table methods take the row object itself –
toggleRowSelection(row), setCurrentRow(row),
toggleRowExpansion(row) – and compare it by identity, so a copy sent
from R would match nothing. Likewise the upload's abort(file) and
handleRemove(file), and a virtualized tree's expandNode(node) and
collapseNode(node). These stand for the object instead, and the page
puts the real one in its place before the method runs.
Value
A reference, for call_el()'s args.
Examples
if (interactive()) {
# inside a server function: select the third row, then make it current
call_el(session, "tbl", "toggleRowSelection", list(el_table_row(3), TRUE))
call_el(session, "tbl", "setCurrentRow", list(el_table_row(3)))
# stop one file
call_el(session, "docs", "abort", list(el_upload_file("big.csv")))
# open a node of a virtualized tree
call_el(session, "files", "expandNode", list(el_tree_node("src")))
}