Global searching can be turned off using the option searching = FALSE
, and you may also disable searching for individual columns using the option searchable
in columnDefs
, e.g. we disable searching for the first and third column:
library(DT)
= iris[46:55, ]
iris2 datatable(
filter = 'top',
iris2, options = list(
columnDefs = list(list(targets = c(1, 3), searchable = FALSE)),
pageLength = 5
) )