library(DT)
data <- data.frame("Hi" = c("One","Two"), "Something" = c("A", "B"))
datatable(data, filter = 'top')
Translating a DT::datatable is nicely documented here. But, I am having trouble translating the placeholder on filter showing "ALL" in the example above. Does anyone have an idea how to change this?
It's not pretty, but until they enable this in their API, you could always clean up with javascript afterwards:
library(DT)
data <- data.frame("Hi" = c("One","Two"), "Something" = c("A", "B"))
datatable(
data, filter = 'top',
callback=JS('$(\'div.has-feedback input[type="search"]\').attr( "placeholder", "Alles" )')
)
Looks like this:

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With