Changing the appearance of the results list #150
CleitonDeLima
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Hi @CleitonDeLima, Interesting idea. I have been using custom Select2 implementations in the past, that were displaying much more information. Does something like that, work out-of-the-box now, or would it require a lot of JS work on our (this pages) side? Cheers, |
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,
Today django-select2 has some limitations for using the templateResult option of select2.
The api is returning by default for each object
id
andtext
. I think it would be interesting to have the option to add more information, in case it is necessary to change the template via the frontend with other information.There could be something like this:
and the API return could be like this:
Example:
if it's something that makes sense to have I can open a PR.
Beta Was this translation helpful? Give feedback.
All reactions