ebailey78 / shinyBS

Twitter Bootstrap Components for Shiny
182 stars 47 forks source link

bsModal Integration with DT Events #45

Closed DarioS closed 8 years ago

DarioS commented 9 years ago

I would like to propose that bsModal can be associated with a data table. Currently, the trigger parameter requires "The id of a button or link". In my use case, I have a table of numbers, and when a cell of the table is clicked, a popup will show the scatterplot of the data used to calculate that number. I need to link the modal popup to the click information available from DT.

shrektan commented 9 years ago

I think you may realize your idea by observing the DT_row_selected?

发自我的 iPhone

在 2015年8月3日,13:00,DarioS notifications@github.com 写道:

I would like to propose that bsModal can be associated with a data table. Currently, the trigger parameter requires "The id of a button or link". In my use case, I have a table of numbers, and when a cell of the table is clicked, a popup will show the scatterplot of the data used to calculate that number. I need to link the modal popup to the click information available from DT.

— Reply to this email directly or view it on GitHub.

DarioS commented 9 years ago

The suggestion does not work.

mheiser-md commented 9 years ago

Check my code in issue bsModal and dateinput #46. It shows an example how one can use the row_selected event to toggle a Modal.

DarioS commented 8 years ago

Having an event observer on the cell clicked event and toggling a modal is a correct approach.