I've been using Shiny at work for a couple months now. The combination of R and web interaction is helping me move multiple tasks out of spreadsheets. So, first, kudos to the dev team.
The current app I'm developing presents results in the form of a table. Right now, it's a gvisTable, though it could be a standard Shiny Table or DataTable if the solution requires it. Everything renders fine, but readability is a little sub-optimal. I'm using the first column as row labels. The text in these cells is being wrapped. This increases the row height, which I see no option or parameter to control. Also, as the table is scrolled, this label column is hidden making the results less easy to interpret.
server.R
output$checkbook <- renderGvis({
#...omitted code for manipulating the data frame...#
tbl.options <- list(sort='disable', width='100%')
tbl.formats <- as.list(rep("#,###", length(variety.names)))
names(tbl.formats) <- variety.names
gvisTable(t.checkbook, options=tbl.options, formats=tbl.formats)
})
ui.R
mainPanel(
tabsetPanel(
tabPanel("Checkbook", dateInput("inventory.date", "Inventory Date")
, htmlOutput("checkbook"))
)
)
After searching for different possibilities, I've got no clue if this type of custom styling is possible. I've seen some resources on manipulating the html/css of the webpage to alter output elements, but I have zero experience as a web developer and have yet to be able to affect any change to how the table is displayed. Can anyone recommend a solution or a good resource to follow in order to get these customizations...or is it not possible in Shiny?
Thanks