Hi Kirill (and Joe),
I was very happy to discover this reactive table.
Due to my being an absolute shiny novice, however, I have been stalled for a few hours trying to add a feature. Perhaps one of you can point me in the right direction?
What I wish to do is
1) detect the cell that has been clicked (this works fine, of course)
2) extract the original data from the underlying data.frame (also works)
3) do some operations on that data (in my case, parse out a pubmed ID, and retrieve the related journal article abstract)
4) display the text of the abstract in a textarea
In my experiments it would be completely adequate to skip step 3, and just display the data.frame[row,col] value in the textarea.
I can modify the contents of the target textarea, using some simple jquery added (inelegantly) to responsiveTable.js.
But back in R -- where I need to be, to have access to the data.frame, and to familiar code which can fetch the journal abstract, I do not know how to change the contents of the target textarea. Perhaps some inline javascript could help do that? Or is that too much a hack, and I need to define a reactive element that connects the responsiveTable event and the textarea? If so, are their any examples of that you can suggest?
I suspect that if I had more completely absorbed the reactive programming idiom I would be able to figure out the answer.
Any guidance you can provided will be deeply appreciated!
Thanks,
- Paul