Is your feature request related to a problem? Please describe.
We are using the auto-complete to create link with other element (not url link but rather a reference). We want to display the element name and keep the element id in an span surrounding the name. So we need two informations when user pick an element: the id and the name.
Describe the solution you'd like
Simply allow to pass object as the value so we could pass someting like {name: "My element", id: "123"}
Describe alternatives you've considered
We can pass a stringify version of the json or the two values separated by a predefined caracter.
good advice
I've created a ticket to add documentation for this, but we have an optional meta field on the autocompleter item interface, and if you provide it it will be passed into your onAction function as a fourth argument. Here is an example of how to use it: https://fiddle.tiny.cloud/Mwhaab/4
I've created a ticket to add documentation for this, but we have an optional
metafield on the autocompleter item interface, and if you provide it it will be passed into youronActionfunction as a fourth argument. Here is an example of how to use it: https://fiddle.tiny.cloud/Mwhaab/4
Thanks for revealing this "secret" feature. :)