空单元格表(GWT)的UiBinder中的“setPageSize()”在哪里?
我有一张单人床和一个简易床。我希望在加载页面时默认设置该单元格表的PageSize7 在ui.xml文件中空单元格表(GWT)的UiBinder中的“setPageSize()”在哪里?,gwt,gwtp,Gwt,Gwtp,我有一张单人床和一个简易床。我希望在加载页面时默认设置该单元格表的PageSize7 在ui.xml文件中 <c:SimplePager ui:field="orderListSimplePager" pageSize="7" /> <c:CellTable ui:field="orderListCellTable" /> <c:SimplePager ui:field="orderListSimplePager" /> <c:CellTable
<c:SimplePager ui:field="orderListSimplePager" pageSize="7" />
<c:CellTable ui:field="orderListCellTable" />
<c:SimplePager ui:field="orderListSimplePager" />
<c:CellTable ui:field="orderListCellTable" pageSize="7" />
运行后,什么也没有发生,简单的寻呼机没有将7作为页面大小
现在,我通过将pageSize=7放入Ui.xml中稍微修改了代码
在ui.xml文件中
<c:SimplePager ui:field="orderListSimplePager" pageSize="7" />
<c:CellTable ui:field="orderListCellTable" />
<c:SimplePager ui:field="orderListSimplePager" />
<c:CellTable ui:field="orderListCellTable" pageSize="7" />
现在,如果CellTable在第一次初始化页面时就已经有了数据,那么上面的代码就可以工作了。但是,如果celltable开始时没有数据,则初始化页面后会显示加载消息see image,这不好:
注意:我想在ui.xml上设置PageSize,这样我就可以轻松地更改它
那么,在UiBinder中为空单元格表GWT在哪里设置pagesize?您不能为每次加载表更改pagesize。 但您可以使用此选项禁用或更改加载指示器 celltable.SetLoadingIndicator新标签