Created by: stof
This reopens #5227 from @jpkrohling (rebased to target the 2.2.2-wip branch) as @mdo said he has an issue to reopen it.
Original description:
This has a similar intention as the pull request #4790 , but it's a different implementation. It basically allows the consumer of typeahead to determine how to display the entry, and how to uniquely identify it. The test is basically the same as the one from the mentioned pull request, with small modifications. So, credits for the test goes to @jobsantiago .