You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.
I am using custom fields (object properties besides id and text) in my result items to add some sugar in the templates e.g. to show an icon or sub-texts .
Now when rendering each item in the results drowdown my own resultItem template method only receives the 'cleaned' item version created by the filterResult method here
I do understand that simply using the input item may be a problem if it has children. So how about creating the result by copying the original item without the children key. I found this object destructing infos here and the code may end up with something like this:
I am upgrading from the old v2 atm and started using you lib in a plain manner(no jquery/react wrapper) and try to not override your base class or create new classes for every one of my differing selects. Instead i am using a factory class shuffling the options and some custom templates. Had quite a struggle to figure all those requires out ;-)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am using custom fields (object properties besides id and text) in my result items to add some sugar in the templates e.g. to show an icon or sub-texts .
Now when rendering each item in the results drowdown my own resultItem template method only receives the 'cleaned' item version created by the filterResult method here
I do understand that simply using the input item may be a problem if it has children. So how about creating the result by copying the original item without the children key. I found this object destructing infos here and the code may end up with something like this:
I am upgrading from the old v2 atm and started using you lib in a plain manner(no jquery/react wrapper) and try to not override your base class or create new classes for every one of my differing selects. Instead i am using a factory class shuffling the options and some custom templates. Had quite a struggle to figure all those requires out ;-)
The text was updated successfully, but these errors were encountered: