I have a wide table in a flexdashboard that displays via renderTable
. There is a scroll bar in the browser but if you scroll the table to the right it goes into the sidebar. How can I make it go behind the sidebar invisibly or keep it contained in its div cell?
Here is the MWE:
---
title: 'TEST'
output:
flexdashboard::flex_dashboard:
runtime: shiny
---
```{r}
library(flexdashboard)
library(shinyWidgets)
library(shiny)
library(shinyjs)
library(stringi)
```
Inputs {.sidebar data-width=250}
-----------------------------------------------------------------------
```{r, echo = FALSE}
fileInput('file_input', tags$b('Choose CSV File'), accept=c('.csv'))
```
Column{data-width=300}
-----------------------------------------------------------------------
```{r, echo = FALSE}
set.seed(10)
x <- unique(stringi::stri_rand_strings(100, 3, '[A-Z]'))
x2 <- setNames(as.data.frame(matrix(sample(1:10, 10*length(x), T), ncol = length(x))), x)
renderTable(x2)
```