Sie sind nicht angemeldet.

1

Freitag, 26. Januar 2018, 00:42

CONTEXTMENU enterfs, can html be used?

Hi, I tried to set up a special format for FULLSCREEN CONTEXTMENU caption but it did not work. It just displayed the text as was.


enterfs="[div style=[sq]text-align:left; display:inline;[sq] /]Full Screen [/div/][div style=[sq]float:right; text-align:right; display:inline;[sq] /] F [/div/]"


For others items on my menu this worked very well. I wonder, it is not possible to use HTML on enterf or exitfs attributes?

Thank you

Roberto

2

Freitag, 26. Januar 2018, 01:09

Ok, cannot, so I did as the others items

<item name="fs" caption="[div style=[sq]text-align:left; display:inline;[sq] /]Full Screen [/div/][div style=[sq]float:right; text-align:right; display:inline;[sq] /] F [/div/]" onclick="switch(fullscreen);" devices="fullscreensupport" />


And add 2 events to change caption

<events "
onenterfullscreen.fullscreensupport="set(contextmenu.item[fs].caption, '[div style=[sq]text-align:left; display:inline;[sq] /]Exit Full Screen [/div/][div style=[sq]float:right; text-align:right; display:inline;[sq] /] F [/div/]');"
onexitfullscreen.fullscreensupport="set(contextmenu.item[fs].caption, '[div style=[sq]text-align:left; display:inline;[sq] /]Full Screen [/div/][div style=[sq]float:right; text-align:right; display:inline;[sq] /] F [/div/]');"
/>


Worked

3

Samstag, 27. Januar 2018, 18:09

Hi,

thanks for the note!

It wasn't intended that html code wouldn't be working for the enterfs/exitfs settings. That was unfortunately missed because they are a special case.
But with the next release (1.19-pr15) it will be working.

Best regards,
Klaus