Use the matchOptions
property to define a custom matching function.
The function should return an array of Option Objects
.
In this example, we're allowing the user to match on exact PLU code in addition to the regular text search.
Note that this example is kind of silly, it would be a much better user experience to include the PLU code on the optionHTML
if we wanted to allow the user to match against it.