3.2.0

Trying to right align text in an AW.Input

Hi everyone

I'm trying to align text to the right in an AW.Input control, but neither of the following are working:

inputObj.setStyle('text-align','right')


or

inputObj.getContent('box/text').setAttribute('align', 'right')


Can anyone suggest how this might be achieved?

Many thanks as always.
Will
Will
June 5,
You just need to use setStyle with text-align:

inputObj.getContent('box/text').setStyle('text-align', 'right');
Carlos
June 5,
Excellent...thanks.
Will
June 5,

This topic is archived.

See also:


Back to support forum