Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RStudio Shiny renderDataTable font size

Tags:

r

shiny

I am trying to reduce the font size in my renderDataTable but I cannot find any example that controls font size. I have read that it is possible to control it through jquery but I cannot find any examples. Any guidance would be very helpful as I am using Shiny ioslides presentation and the font size in my data tables is simply too large.

like image 497
Arun Avatar asked Jul 31 '14 21:07

Arun


1 Answers

You can put dataTableOutput("tableName") inside of div()and change the font using the style parameter. style takes CSS arguments.

For example, if have this...

dataTableOutput("tableName")

you can change it like this...

div(dataTableOutput("tableName"), style = "font-size:80%")

to make the font size 20% smaller.

like image 61
rsoren Avatar answered Oct 12 '22 03:10

rsoren