multi-value combobox?
Posted: Thu May 15, 2014 2:30 pm
Hi all,
I want to use a combobox in an author action. More specifically, I use it in the ToggleSurroundWithElementOperation to add a <hi> element around the current selection, allowing to user to specify the elements @rendition attribute from a list of allowed values ("#it", "#b", "#sup" and such).
This works all very well with the following stuff in the Operation's fragment parameter:
But now I want to allow the selection of several of those values. The TEI allows multiple (pointer-type) values in this attribute, separated by whitespace (see TEI P5).
Can I do this with the ask/combobox method?
Thanks,
Andreas
I want to use a combobox in an author action. More specifically, I use it in the ToggleSurroundWithElementOperation to add a <hi> element around the current selection, allowing to user to specify the elements @rendition attribute from a list of allowed values ("#it", "#b", "#sup" and such).
This works all very well with the following stuff in the Operation's fragment parameter:
Code: Select all
<hi xmlns="http://www.tei-c.org/ns/1.0" rendition="${ask('Welche Hervorhebung?',combobox,('#b':'fett';'#it':'kursiv';'#sc':'Kapitälchen';'#spc':'gesperrt';'#sup':'hochgestellt';'#sub':'tiefgestellt';'#initCaps':'Kapitälchen mit Schmuck-Initiale'),'#sup')}"/>
Can I do this with the ask/combobox method?
Thanks,
Andreas