Getting false on top row when using options = list(dom = 't') on datatable

Hi good day,have been trying to get only a datatable to show my information without filters, search boxes or such, but when I use options = list(dom = 't') to achieve it I still get a "FALSE" word on the top row where the titles for each column should be.

my code:

output$tableDT7= DT::renderDataTable({
              rownames = T,
              colnames = F,
              options = list(dom = 't')
      formatPercentage(1:5, 2)

thanks a lot

If you want to remove colnames, use NULL instead of F


datatable(iris %>%
              group_by(Species) %>% 
              summarise_all(mean) %>% 
          rownames = T,
          colnames = NULL,
          options = list(dom = 't'))%>%
    formatPercentage(1:4, 2)

Created on 2019-05-10 by the reprex package (v0.2.1)

1 Like

thanks a lot!! worked perfectly

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.