Question
Align-Center text in 1st column of a table
Hi guys,
I'm trying to save some time by using a script that'll work on tables but I'm facing a problem on 1 line.
I would like to Center the text of the first column, without using any paraphStyle.
Here is part of it.
table.cells.everyItem().clearCellStyleOverrides(true);
table.appliedTableStyle = "Main Table";
table.cells.everyItem().leftInset = table.cells.everyItem().rightInset = "1.411 mm";
table.cells.everyItem().topInset = table.cells.everyItem().bottomInset = "1.411 mm";
table.cells.everyItem().verticalJustification = VerticalJustification.CENTER_ALIGN;
table.columns[0].width = "10";
table.columns[1].width = "76";
//table.columns[0].cells.everyItem()... (what about here ??) ... Justification.CENTER_ALIGN;
table.cells.everyItem().autoGrow = true;
table.cells.everyItem().minimumHeight = "1.058 mm";My challenge here is to fill the gap at the line
//table.columns[0].cells.everyItem()... (what about here ??) ... Justification.CENTER_ALIGN;
Any help will be appreciated 😉
