Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shiny data table removing column header and sorting altogether

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?

like image 814
Gopala Avatar asked Jan 06 '23 23:01

Gopala


1 Answers

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))
like image 50
Carl Avatar answered Jan 18 '23 22:01

Carl