I am trying to use a shiny data table without the header at all. I got to the point of not displaying column names, but can't seem to get rid of the header with sorting arrows:
library(DT)
df < data.frame(x = c('a', 'b', 'c'), y = c(1, 2, 3))
datatable(df, rownames = NULL, colnames = NULL, options = list(dom = 't'))
Is there any way to just get rid of the header totally?
I don't know about the whole header, but this removes the sort ticks.
library(DT)
df <- data.frame(z = c('a', 'b', 'c'), y = c(1, 2, 3))
datatable(df, rownames = NULL, colnames = NULL, options = list(dom = 't',bSort=FALSE))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With