Aligning Cell Contents

Tags: #<Tag:0x00007efc6debaf58> #<Tag:0x00007efc6debab70>

I have a table where I would like to Center Align the contents of all cells except for the first column, which I would like to have Left Aligned. I see how to Center Align all of the cells using className: ‘htCenter’. But I can’t figure out how to exclude the first column. Any help appreciated.

Thanks.

Hi @kmd2

Yex, the htCenter aligns content horizontally. If you’d like to have a higher cell (or the cell would expand itself with content) you can use htCenter htMiddle. That combination centers content horizontally and vertically.

Now, to apply a certain styling to a part of the table you can use cells option. It overwrites what was set on the highest level of the configuration. Here’s a demo https://jsfiddle.net/csb4uq1p/

Perfect. Thanks.