Hi AppGineers,
we can use HTML to beautify the dropdown content of standard lookups. This works pretty well for selection. But after save and reload of the page the HTML fragments have gone. It seems as if SELECT2 strips HTML tags.
Please have a look at the Palette and Color fields especially after Save:
The dropdown content is pure HTML with some CSS. No images.
Questions
I have seen Select2's escapeMarkup-function. As this is not being used by AppGini's generated code, how can I late-bind this function?
Is there anything I can do with Select2 to keep the html-tags?
I really appreciate any kind of help!
Best Regards,
Jan
AppGini 5.75
PS: This is the HTML code inside the dropdown and after selection. That code gets stripped out after save / on reload.
Code: Select all
<span class="select2-chosen">
<span class="label label-default" style="background-color: rgba(166, 217, 106, 0.10); border: 1px solid gray;"> </span>
<span class="label label-default" style="background-color: rgba(255, 255, 191, 0.10); border: 1px solid gray;"> </span>
<span class="label label-default" style="background-color: rgba(253, 174, 97, 0.10); border: 1px solid gray;"> </span>
<span class="label label-default" style="background-color: rgba(215, 25, 28, 0.10); border: 1px solid gray;"> </span> Diverging 4
</span>