I don't think this will work, the arrow icon is added by wrapping the header Cell in an
IconCellDecorator (in AbstractCellTable.getSortDecorator(), which is called in AbstractCellTable.createHeaders(), both private methods).
I have a similar issue in that I want to move the icon to the right of the label, so I also need to target the icon. Xavier, you could try using CSS to hide the icon. Just as you've replaced the icon resources in you TableResources interface, you can replace and extend the CSS file:
public interface TableResources extends CellTable.Resources {
@Source("up.png")
ImageResource cellTableSortAscending();
@Source("down.png")
ImageResource cellTableSortDescending();
@Source("MyCellTable.css")
CellTable.Style cellTableStyle();
}
And in MyCellTable.css:
...
/* hack to remove sort icon */
.cellTableSortedHeaderAscending > div,
.cellTableSortedHeaderDescending > div {
padding-left: 0;
}
.cellTableSortedHeaderAscending > div > div:first-child,
.cellTableSortedHeaderDescending > div > div:first-child {
display: none;
}
...
The CSS above undoes the cell decorator's padding and hides the icon. If you need help with getting the CSS to work the first place to look is the
ClientBundle dev guide.