Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. jscode_for_screen_Height <- '$(document).on("shiny:connected", function(e) {
  2. var jsHeight = screen.height;
  3. Shiny.onInputChange("GetScreenHeight",jsHeight); });'
  4.  
  5. output$viewDataCTgov <- DT::renderDataTable({
  6. DT::datatable(data_to_render_CTgov(),
  7. options = list(scrollX = TRUE,scrollY = paste(input$GetScreenHeight,"px",sep=""),
  8. scrollCollapse=TRUE,pageLength = 100,searchHighlight = TRUE), escape = FALSE)
  9. })
  10.  
  11. leafletOutput("mymap", height = XXX )
  12.  
  13. output$ScreenHeightvalue <- paste0(input$GetScreenHeight)
  14.  
  15. leafletOutput("mymap", height =(textOutput("ScreenHeightvalue")))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement