Append custom style to a GWT CellTable (in this case all cells)

后端 未结 2 559
南方客
南方客 2020-12-09 04:06

I have a case where I want to append

white-space: nowrap;

to the style of each cell in my CellTable. Currently it applies to all tables, bu

2条回答
  •  情话喂你
    2020-12-09 05:01

    Or you could do this the easy way:

    CellTable yourTable = new CellTable();
    yourTable.getElement().getStyle().setWhiteSpace(WhiteSpace.NOWRAP);
    

    No css files, no weird boilerplate code.

提交回复
热议问题