How to align field inputtext right?
Asked Answered
P

1

8

How can I align the Text within all fields to right instead of left? I looked throught the API but found only a property for the label.

Edit

I know that I can change it by CSS but I am looking for a way to do it with a config option. ...still hoping there is one...

Pergrim answered 21/2, 2013 at 15:8 Comment(3)
css? input { text-align: right }?Onstage
Thanks for the reply, but I am looking for a ExtJS native way. I noticed that I didn't made this clear and updated my question.Pergrim
EXT.JS uses CSS, there's nothing wrong with adding a class name to that element and setting some CSS for it.Felid
R
16

There is actually a way to do it in the field's config object:

fieldStyle:     "text-align:right;"
Repugn answered 21/2, 2013 at 16:17 Comment(1)
Thank you for your answer. This is sort of what I was looking for.Pergrim

© 2022 - 2024 — McMap. All rights reserved.