I have a data table that I make brilliant using the DT package. Each individual column has a filter at the top. All column filters work, but the formatting is somewhat strange.
Screenshot with column filters
As you can see, some filters have the word “Everything” inside them, and they function correctly, when you enter them, the word that you enter appears.
However, some of them do not work, and when I enter them, the filtering mechanism works (as in the correct lines, it is filtered out), but you cannot see which filter you entered. It seems that the cursor is a way to the left of the field and is not visible.
The code I use to display the data table is below:
DT::renderDataTable(X,
options = list(pageLength = 10,
searching = TRUE,
autoWidth = TRUE,
columnDefs = list(list(className = 'dt-center', targets = "_all"))
),
filter = "top"
)
mikew source
share