I am trying to persist alignment for each column. How can access the alignment for a particular columns?
Hi @amol
the easiest way would be to use classes inside the cells
settings. Here is an example http://jsfiddle.net/handsoncode/eqmsbq0r/
We have already defined alignment classes htLeft
, htRight
, htCenter
and for vertical alignment htMiddle
@aleksandra_budnik thanks for you response. Let me reframe my question. Like you demo setting alignment for a column, I would like to retrieve alignment set for a column. So that we can persist this column setting , and will be used when user revisits the form.
Something similar to getColWidth, but instead of width API should return alignment set of for the column
I am afraid that we do not have this option yet. I think that the easiest way would be to call
hot.getCellMeta(0,column).className
and compare it to htLeft
, htRight
, htCenter
and htMiddle
if all the cells in the column are aligned the same way.