Replies: 1 comment
-
@rdk8 hmm I think you would still need some way to distinguish one model from the next. So if your list of names are unique, you could use To do that, pass an array into the options parameter with a key of <x-lwa::autocomplete
...
:options="[
'id' => 'name',
]" That would then essentially work similar to if you had a standard html select with the option value and label the same, like Hope this helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Josh,
I haven't dug into the code yet, but I don't see anything relevant in the documentation. Is it possible to handle models that don't have an ID field? In my case I am using a view that returns a list of names without IDs. If I omit the ID prop, I get an undefined column error where it's looking for an ID column.
Thanks,
Raja
Beta Was this translation helpful? Give feedback.
All reactions