Hello,
When I use data datatable output with long text, I am not able to figure out how to wrap the text. Below is an example ui.R and server.R I am using for testing
ui.R:
library(shiny)
shinyUI(fluidPage(
fluidRow(
dataTableOutput(outputId="table")
)
))
server.R
library(shiny)
mystr=paste(letters,letters,letters,collapse='',sep="")
df=data.frame(v1=rep(mystr,50),v2=rep(mystr,50),v3=rep(mystr,50),v4=rep(mystr,50))
shinyServer(function(input,output){
output$table = renderDataTable({
df
})
})
WIth long text like this, I have to scroll the window to view the columns. Is there a way to word wrap the text. I will appreciate any help.
I am using shiny_0.10.0 and RStudio 0.98.932 in Windows.
Thanks,
Shankar