Search from left

Search from left

EetieDEetieD Posts: 1Questions: 1Answers: 0

Hi,

I am totally new the DataTable, so I was wondering... is there a way to search from the left of the value?

For example: the date is '2020-06-12'... when I enter '20-06' in the textfield, I see the row in the search results, but I only want to see the row when I add '2020-' (from the beginning of the value). Is there a way to search from the beginning?

Any help would be appreciated! Thanks in advance!

EetieD.

Answers

  • kthorngrenkthorngren Posts: 21,172Questions: 26Answers: 4,923

    The search() API allows for searching using REGEX expressions. The docs explain the different search modes and how to use them. Start there and let us know if you have further questions.

    Kevin

This discussion has been closed.