GWT CellTable - set column width

前端 未结 4 2028
臣服心动
臣服心动 2021-01-04 02:03

Is it possible to set the column width of CellTable in GWT?

4条回答
  •  再見小時候
    2021-01-04 02:50

    What worked for me is adding a new class in my css. This class gets applied only to select elements whose length varies depending on data.

    .__gwt_cell select{
        width:170px;
    }
    

    Then applying it on my particular cell style like o:

    table.getColumn(3).setCellStyleNames("yourstyle");
    

提交回复
热议问题