PDA

View Full Version : [FIXED] Column Alignment



SebastianZ
4 Sep 2017, 1:20 AM
Description
It is impossible to set the "align" - property of a grid-column to "right" or "left". The only possible values are "start", "center" and "end".
But "end" and "right" handle the header in a different way: With "end" the header is left-aligned, with "right" it is right-aligned.
( https://fiddle.sencha.com/#view/editor&fiddle/262t )
Also i can't find any documentation to "start" or "end" at http://docs.sencha.com/extjs/6.5.1/modern/Ext.grid.column.Column.html#cfg-align

SA Version
4.2.2.282

Platform
1.6.2.49 - win32 x64

CMD
6.5.1.240


Framework
Ext JS 6.5.x Classic

petr.vecera
4 Sep 2017, 4:30 AM
With the docs you have to make a difference between classic and modern http://docs.sencha.com/extjs/6.5.1/classic/Ext.grid.column.Column.html

FYI you can just select the component in SA and click F1 it will open you the docs.

So far it looks like bug in ExtJS because it clearly says that it should be also header. Anyway SA should allow you to write your own values. I will fix that.

SebastianZ
4 Sep 2017, 4:36 AM
Hi,

thanks for your quick reply. I'm glad to heard that this bug is going to be fixed.
In the meantime, i wrote an override, that works for my usage (i need all number-columns right aligned ):



Ext.override(Ext.grid.column.Number, {
align: 'right'
});