We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public final void addColumn(Column<T, ?> column, String header) { this.view.addColumn(column, header); }
GwtMaterial table 2.2-SNAPSHOT
public final void addColumn(String header, Column<T, ?> column) { this.view.addColumn(header, column); }
Demo Example column definition: error in 2.2-SNAPSHOT
table.addColumn(new TextColumn<Person>() { @Override public String getValue(Person object) { return object.getFirstName(); } }, "First Name");
table.addColumn("Last Name", new TextColumn<Person>() { @Override public Comparator<? super RowComponent<Person>> sortComparator() { return (o1, o2) -> o1.getData().getLastName().compareToIgnoreCase(o2.getData().getLastName()); } @Override public String getValue(Person object) { return object.getLastName(); } });
Thanks
The text was updated successfully, but these errors were encountered:
With 2.2 you need to pipe the configurations on the Column. Like so:
table.addColumn("Last Name", new TextColumn<Person>() { @Override public String getValue(Person object) { return object.getLastName(); } } .sortComparator((o1, o2) -> o1.getData().getLastName().compareToIgnoreCase(o2.getData().getLastName())));
The demo samples still need to be updated for the 2.2-SNAPSHOT
Sorry, something went wrong.
No branches or pull requests
GwtMaterial table 2.1.1.
GwtMaterial table 2.2-SNAPSHOT
Demo Example column definition: error in 2.2-SNAPSHOT
Thanks
The text was updated successfully, but these errors were encountered: