I have created a shiny App with a data table. If i run the app everything is fine. But if i gave the app code to a friend and he runs the app the table doesn't have any background color and is transparent (see picture below). Does anybody have an idea why the table is is displayed incorrectly? Thanks.
output$mytable <- DT::renderDT(tabelle,rownames = FALSE,style="auto",filter="top",callback=JS('$('div.has-feedback input[type="search"]').attr( "placeholder", "Filter" )'), options = list(autoWidth = TRUE,scrollX = TRUE,language = list(sInfoThousands=".",zeroRecords="Keine Daten gefunden.",lengthMenu="Zeige MENU Einträge",search = "Suche",info = 'Insgesamt TOTAL Zeilen. Angezeigt werden START bis END Elemente.',sInfoFiltered ="(gefiltert von MAX Einträgen)",paginate =list('next'="vor", previous="zurück"))))
I'm not sure why it is transparent, but you can try "forcing" the background and opacity by adding the line below. Adjust the color and opacity as needed.
Thanks for the answer but i get the following error:
Error in formatColumns(table, columns, tplStyle, valueColumns, match.arg(target), :
Invalid table argument; a table object created from datatable() was expected
Error in formatColumns(table, columns, tplStyle, valueColumns, match.arg(target), :
Invalid table argument; a table object created from datatable() was expected
you haven't put it in the correct place yet.
if modifies the DT::datatable that gets passed into DT::renderDT,( whereas you have it modifying renderDT which will not work)