DataTable single row+column selection

456 views
Skip to first unread message

Dawg

unread,
Jan 12, 2016, 2:18:46 PM1/12/16
to Shiny - Web Framework for R
Hello -
I can't figure out to do row+column selection in datatable. 
Working off the example in
I can get  renderDataTable(mtcars2, selection = list(target = 'column')) to work, it can select multiple columns.
I can't get renderDataTable(mtcars2, selection = list(target = 'row+column')) to work, this leads to just rows being selected.
I also can't figure out how to select single columns. The selection parameter in this case is taken up by selection="single" and can't be made into a list -- as much as I try different combinations.

Thanks,
D. 

Yihui Xie

unread,
Jan 12, 2016, 3:16:28 PM1/12/16
to Dawg, Shiny - Web Framework for R
To select columns, the table has to have a footer. Please see
https://yihui.shinyapps.io/DT-selection for examples.

Regards,
Yihui
Reply all
Reply to author
Forward
0 new messages