How to use multiple labelField on one component ? #261
Unanswered
manutheblacker
asked this question in
Q&A
Replies: 2 comments 1 reply
-
You need to use custom render function in |
Beta Was this translation helpful? Give feedback.
0 replies
-
I have found out, by default it check on all response data, it doesn't look into nested data. {
'ref' : '1er',
'company' : {
id : 1, name : 'Benin'
}
} i was searching Benin at the parent level, i think this is where Svelecte look for the data, finally i've modified my backend code to return this information also at the parent level. I was wondering, if there was a way to also search at the sublevel of company ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm building a search bar for an app using the remote database search.
The backend is returning correctly the data expected, i defined my Svelecte component this way.
I wanted to know if there is a way to use the labelField like this : {"ref"|"country"|"city"}
Beta Was this translation helpful? Give feedback.
All reactions