Using HTML in "Value formatting parameters?"

MarkFL

La Villa Strangiato
Joined
Jul 3, 2017
Messages
1,245
I'm using XF 2.0.11 to develop an addon, and in the style properties for this addon I have the following option:

taz_scrolldev_01.png

For this option the "Value formatting parameters" are defined as follows:

taz_scrolldev_02.png

I would like to be able to show the actual Font Awesome icons to the right of the radio buttons...would this be possible?
 

Steve

Fanatic
Joined
Apr 17, 2009
Messages
3,710
Check out the admin template: style_property_template_messageUserElements and see how it's rendered (I'm not completely sure!)

Ah I see now,

upload_2018-11-28_13-51-19.png
 

MarkFL

La Villa Strangiato
Joined
Jul 3, 2017
Messages
1,245
Thank you Steve, after some investigation I found that by defining phrases (containing the desired HTML), such as the following:

taz_scrolldev_03.png
And then using these phrases in the "Value formatting parameters" as follows:

taz_scrolldev_04.png

The result is:

taz_scrolldev_05.png

This is probably considered a "down and dirty" solution, where Ideally I would use an admin template for this, but when I did that, I found my selection was not being saved, so I'll have to figure out how to do that later. :D
 
Top