Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Autocomplete] Support labelField options #2375

Closed
MatTheCat opened this issue Nov 14, 2024 · 0 comments · Fixed by #2382
Closed

[Autocomplete] Support labelField options #2375

MatTheCat opened this issue Nov 14, 2024 · 0 comments · Fixed by #2382
Labels

Comments

@MatTheCat
Copy link
Contributor

I’m currently using a DTO to store entities data besides their text and value in TomSelect options. I wanted its properties to match our model; e.g. by setting valueField to id I can make TomSelect use the DTO’s $id property to populate options’ value. This works great, but not for labelField because its default value (text) is hardcoded in score, render.item and render.option.

Would it be possible to make this property depends on the labelField option? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants