-
Notifications
You must be signed in to change notification settings - Fork 157
Suggestion: support array of objects as data source #62
Comments
you should be able to use the serializer
|
If we understand you right, this should already be supported. |
I have an object array and I want to search it with different properties at the same time. I guess, there is not any way to do that now, isn't it? When I use a |
you could maybe modify your data strings from your API response (or after the response before you set the value to your v-model"
use javascript to convert the strings to something like this. (note | is just a character used to separate data in your string) you can use anything you want.
then use the custom separator character | to modify the display using a computed property on the "query" v-model data. therefore it only shows my_username but still queries the other data. |
Greetings,
Project works great! I am not very experience with JS, but what I was trying to do with this code was to use it to select an item within an array of objects, whereas the searched properties might be distinct than property bound to vmodel. As it stands, is my assumption correct that this is only for simple arrays of strings?
The text was updated successfully, but these errors were encountered: