cytoscape / cyjShiny

An R/shiny widget for cytoscape.js
Other
92 stars 28 forks source link

`getSelectedNodes` doesn't return anything #10

Closed maxkfranz closed 5 years ago

maxkfranz commented 5 years ago

Is it supposed to return a list of node IDs?

paul-shannon commented 5 years ago

Fixed: a list of node IDs is returned and, in tinyApp.R (which needs a better name), displayed. Better than returning only a simple list would be a data.frame.
A worthwhile option: optionally emit Shiny.setInputValue with every javascript selectionion event, so that R can display a data.frame, or list, of the current selection, without requiring an explicit press of the Get Selected Nodes button.