0
我有一个CellTable
与Columns
。其中一列将文本右对齐编程式:如何将渲染的单元格行对齐到右侧?
column.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
此外,我希望单元格在右侧有一个填充。由于不能得到它的工作。这是我试过的:
column.setCellStyleNames("numberCell");
.numberCell {
padding-right: 5px !important;
margin-right: 5px !important;
color: red !important;
}
单元格中的文本呈现为红色,但没有填充。