cancel
Showing results for 
Search instead for 
Did you mean: 

Align of text in InputField

Former Member
0 Kudos

Hi guys,

In my webdynpro view, there are many inputfields. For most of them, the text in the inputfield start from left, but there are one inputfield start from right to left. The context bind to this inputfield is a number type, is that the reason?

How to change the align of text in InputField?Thank you very much!

Regards,

Xiaoming Yang

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Yes, the alignment is determined by the runtime from the data type of the context attribute to which the InputField.value property is bound.

This gives you a consistent look automatically. You can set the alignment using the InputField.alignment property (type WDInputFieldAlignment), see <a href="https://media.sdn.sap.com/javadocs/NW04/SPS15/wd/com/sap/tc/webdynpro/clientserver/uielib/standard/api/IWDAbstractInputField.html#setAlignment(com.sap.tc.webdynpro.clientserver.uielib.standard.api.WDInputFieldAlignment)">here</a>.

Armin

Former Member
0 Kudos

Hi Armin,

Thank you very much for your answer!

Regards,

Xiaoming Yang

Answers (0)