title: Accessing row clicks in data table in Shiny modal
body: <p>This is cross-posted from here (<a href="https://community.rstudio.com/t/accessing-row-clicks-in-data-table-in-modal/8961" rel="nofollow noreferrer">https://community.rstudio.com/t/accessing-row-clicks-in-data-table-in-modal/8961</a>), no replies yet. </p>
  
  <p>I'm drawing a data table using the DT package in Shiny inside a modal. This is great for my UI, but I want users to be able to click it and access which row they clicked. The usual input$tablename_rows_clicked won't work, because it isn't given a slot in the UI.</p>
  
  <p>Is there a clever DT type way of doing this? Or is there maybe a clever JavaScript way? Anyone any suggestions?</p>
  
  <p>Thanks!</p>