gwtgwt-celltable

GWT CellTable-How to Move the Sorting Arrow from Left to Right side


I Would like to move the sorting arrow from left to right side in the cell table header which is shown in below imageenter image description here

Any Suggestion?


Solution

  • It took me a while to find, but the solution is very easy. Cell table uses default header builder which has an option to render sort icon on left or right side.

    DefaultHeaderOrFooterBuilder<Contact> headerBuilder = new DefaultHeaderOrFooterBuilder<>(table, false);
    headerBuilder.setSortIconStartOfLine(false);
    table.setHeaderBuilder(headerBuilder);
    

    Cheers!