8000 [Autocomplete] Support `labelField` options · Issue #2375 · symfony/ux · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Autocomplete] Support labelField options #2375
Closed
@MatTheCat

Description

@MatTheCat

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0