我想从CellTable的标题中删除排序箭头。 (一个在下面的红色圆圈,这是从GWT展示:http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable)GWT CellTable - 从标题中删除排序箭头
但我仍然希望CellTable的排序功能。
可能吗?任何想法?
我想从CellTable的标题中删除排序箭头。 (一个在下面的红色圆圈,这是从GWT展示:http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable)GWT CellTable - 从标题中删除排序箭头
但我仍然希望CellTable的排序功能。
可能吗?任何想法?
未经测试,可能有点破解,但您可以尝试覆盖默认样式以返回空白图像。扩展Hilbrand's earlier solution覆盖了CellTable使用ImageResources:
public interface TableResources extends CellTable.Resources {
@Source("blank.jpg")
ImageResource cellTableSortAscending();
@Source("blank.jpg")
ImageResource cellTableSortDescending();
}
创建“blank.jpg”,并把它在相同的资源包的这个接口。
getDataGrid()。getColumnSortList()。clear();
删除排序箭头
谢谢!按预期工作! 但方法有以下几种: '公共ImageResource cellTableSortAscending();' 和 '公共ImageResource cellTableSortDescending();' 无论如何,感谢您的帮助。 – 2012-03-10 16:00:33
寻找DataGrid(而不是CellTable)的相应解决方案的人:使用方法“public ImageResource dataGridSortAscending();”和“public ImageResource dataGridSortDescending();” – 2017-11-22 10:42:24