[REQUEST] Clear Search

[REQUEST] Clear Search

robertarkrobertark Posts: 5Questions: 0Answers: 0
edited February 2010 in General
My request would be to add an option which enables/disables the "Clear Search" icon which could be placed to the right of the search box.

Would be helpful for visitors that don't know how to delete the search box manually (unfortunately).

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    This could readily be added to the table after initialisation (or perhaps using fnInitComplete). All the link would need to do is clear the input box and call fnFilter("");. It's a nice idea certainly, although I'm reluctant to include it in the core. More of a one liner for the developer to include it their own specific way, I think.

    Regards,
    Allan
  • drumbumdrumbum Posts: 2Questions: 0Answers: 0
    Could you give me an example of what the code would look like to achieve this? Thanks!
This discussion has been closed.