0

I want to change this text to other text: I tried to search but I didn't find any solution enter image description here

Stéphane Laurent
  • 75,186
  • 15
  • 119
  • 225
nls1200
  • 65
  • 5
  • May this help? https://stackoverflow.com/questions/18474497/replace-text-in-a-website You can inject the js into your shiny app – danlooo Sep 13 '21 at 14:39

1 Answers1

1
library(DT)

datatable(
  iris,
  options = list(
    language = list(
      search = "Seek"
    )
  )
)
Stéphane Laurent
  • 75,186
  • 15
  • 119
  • 225
  • It would be good to give a bit of an explanation about why the code works. – user438383 Sep 13 '21 at 17:21
  • @user438383 It suffices to follow the documentation of datatables. It works because this is the way it has been designed. https://datatables.net/forums/discussion/41287/faq-how-do-i-replace-the-search-label-either-the-text-or-as-a-placeholder-attribute – Stéphane Laurent Sep 13 '21 at 18:15