Quantcast
Channel: Adobe Community : Unanswered Discussions - Digital Marketing Suite
Viewing all articles
Browse latest Browse all 937

Add html to xtype:selection options

$
0
0

I have a dialog with an xtype selection. I'd like to display icons against the options in the list by specifying html in the option text. I've seen it implemented in various places in the CQ dialogs, such as Admitted Groups on the Advanced tab of the page properties dialog, where a user icon is displayed next to the group name (an xtype of authselection?)

 

I have the following:

 

          <icon          jcr:primaryType="cq:Widget"          fieldLabel="Icon"          name="./icon"          type="select"          xtype="selection">         <options jcr:primaryType="cq:WidgetCollection">               <none                     jcr:primaryType="nt:unstructured"                     text="(none)"                     value=""/>                <icon1                     jcr:primaryType="nt:unstructured"                     text="<span class=\'icon1\'>&lt;\/span>Icon 1                     value=icon1"/>                <icon2                     jcr:primaryType="nt:unstructured"                     text="<span class=\'icon2\'>&lt;\/span>Icon 2                     value=icon2"/>          </options>     </icon>

 

The icon is correctly displayed in the list when the selection is dropped down, but when an option is selected, it displays the html markup in the input field.

 

          <span class='icon1'></span>Icon 1

 

Any workarounds?


Viewing all articles
Browse latest Browse all 937

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>