1

I have been having trouble with datatable searches triggering while a user is typing in a search term, even when delaySearch is working. The search triggers for the first character which is typed in, which can be very slow if there are large numbers of records. I found this solution for datatables, but I'm not sure how to implement it for R Shiny.

dt_options <- list(autowidth = TRUE, 
                   searchDelay = 1000 ) 

datatable(initial_list_df, 
          filter = list(position = "top",
                        clear = TRUE,
                        plain = FALSE ), 
          options = dt_options )

Any ideas?

  • 1
    Apologies, have now added an MRE. Thanks for the suggestion, but I would like to avoid users pressing enter and instead search when they reach 3 characters – supercoolphysicist Apr 27 '23 at 21:18

0 Answers0