Yihui, do you possibly have some insight to this?
~~~~ code ~~~~
library(shiny)
library(DT)
ui<-fluidPage(
tags$div(style='text-align:center;',tags$button(type='button',onClick='$("#hiddenDiv").fadeIn();',class='btn btn-primary','Unhide Element')),
fluidRow(
column(6,tags$div(id='hiddenDiv',style='display:none;',tags$p('Hidden Table'),dataTableOutput('hiddenTable'))),
column(6,tags$div(id='regularDiv',tags$p('Visible Table'),dataTableOutput('regularTable')))
)
)
server<-function(input,output,session){
output$hiddenTable<-renderDataTable({
thisData<-data.frame(a=sample(1:10),b=sample(1:10),c=sample(1:10))
datatable(thisData)
})
outputOptions(output,'hiddenTable',suspendWhenHidden=FALSE)
output$regularTable<-renderDataTable({
thisData<-data.frame(a=sample(1:10),b=sample(1:10),c=sample(1:10))
datatable(thisData)
})
}
shinyApp(ui,server)
~~~~ end code ~~~~
The hidden div does not receive the dataTableOutput ... Is there a more appropriate way to accomplish this task?
Thank you!
~Laz Peterson
Paravis, LLC
--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/82a62af5-8f71-453a-a6f4-d9db4b2fefaa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.