Change how key is displayed #329
Answered
by
folknor
BenVerdiman
asked this question in
Q&A
-
Hello, I want to change how key is displayed. And when I search Peter in the input, it shows the full name (Peter Jonathon). I want to show only Peter, and to autocomplete with the full name. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Answered by
folknor
Mar 19, 2022
Replies: 2 comments
-
Yes so just use https://tarekraafat.github.io/autoComplete.js/#/configuration?id=element-optional-1 new autoComplete({
resultItem: {
element: (element, data) => {
element.innerHTML = `<span>${data.value.firstname}</span>`
}
}
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
BenVerdiman
-
Thanks! |
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
Yes so just use https://tarekraafat.github.io/autoComplete.js/#/configuration?id=element-optional-1