我想从CellTable的标题中删除排序箭头.(下面红色圆圈中的一个,来自GWT展示:http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable)

但我仍然想要CellTable的排序功能.
可能吗?任何的想法?
未经测试,可能有点黑客,但您可以尝试覆盖默认样式以返回空白图像.扩展Hilbrand早期的解决方案以覆盖CellTable使用的ImageResources:
public interface TableResources extends CellTable.Resources {
@Source("blank.jpg")
ImageResource cellTableSortAscending();
@Source("blank.jpg")
ImageResource cellTableSortDescending();
}
Run Code Online (Sandbox Code Playgroud)
创建'blank.jpg'并将其放在与此界面相同的资源包中.
| 归档时间: |
|
| 查看次数: |
1662 次 |
| 最近记录: |