Hi Winona,
 
XSLTForms now allows to add HTML attributes to input/textarea elements given they are in HTML namespace such as <xf:input ref="." html:dir="auto"/>.
 
Whether dir="auto" should be systematically added by XSLTForms is a good question. For inputs, this should be added within _javascript_ XsltForms_input.prototype.initBody() method. Actually, more elements could also be considered: labels and outputs, at least.
 
What do you think?
 
--Alain
Le 07/12/2023 17:11 CET, Winona Salesky <[email protected]> a écrit :
 
 
Hi All,
I need to support both rtl and ltr text input in my forms. Reading up on this online, it sounds like the best way to do this is to include the following attribute on the input/textarea elements: dir="auto"
 
What do you think the best way to get this working in XSLTForms is? Edit the XSLTForms _javascript_? Write my own _javascript_ to amend the output? Something else? 
 
Thanks for any thoughts or suggestions. 
-Winona
 
_______________________________________________ Xsltforms-support mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xsltforms-support
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to