add a scrollbar to a box in shiny

Viewed 8259

I have implemented a box on R shiny dashboard page using box() function, it loads the table and represents a column full of population numbers. However the numbers overshoot the table and it looks very bad. I wish to add a scrollbar to the box such that the data remains within the box and I can scroll down easily.

box( title = "Btest", status = "primary",height = 355, solidHeader = T, 
                              tableOutput("table1"))
2 Answers

Just adding the HTML style option should work!

 box( title = "Btest", status = "primary",height = 355, solidHeader = T, 
                                  tableOutput("table1"), style = "overflow-x: scroll")
Related