Thanks for your time.
Actually, this dataframe are fed to DT:: datatable to display in shiny.
So, I am currently passing the dataframe as
DT::datatable(dataframe, options = list(initComplete = JS(
"function(settings, json) {",
"$(this.api().table().header()).css({'background-color': '#000', 'color': '#ffa500', 'font-size': '15px'});",
"}"),lengthMenu = c(15, 20, 25), pageLength = 15, order = list(list(3,'desc')), columnDefs = list(list(className = 'dt-center', targets = 2:3), list(targets = 4,visible = FALSE))))
But it displays all column names in 1 line unlike how we want it to be displayed depending on the sceen size.
Is there a way we can adapt this DT functionality to display column header in such fashion ?