Forum /
Ext GWT Community Forums (1.x) /
Ext GWT: Help & Discussion (1.x) /
Mixed TableColumn alignment header/body
Mixed TableColumn alignment header/body
Hi,
is there an elegant way to change the horizontal alignment within a TableColumn, e.g. to have the column header center-aligned and the values left-aligned? TableColumn.setAlignment would affect both.
Thanks,
Joachim
Yes, but there's a problem...
Yes, but there's a problem...
I'm actually trying to investigate other ways, but you can do this:
When creating the column config for a column, make the name something like:
<p align=\"center\">Your Text</p>
Now, you can have a left-justified text, but have header centered.
There actually is no problem, I misspoke.
Better way
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us