How Can in Flow datagrid can have multiline column?
Thanks and regards
How Can in Flow datagrid can have multiline column?
Thanks and regards
Hi
Did you try as follows as suggested in Vaadin documentation?
Grid<Person> grid = new Grid<>(Person.class, false);
grid.addColumn(createAvatarRenderer()).setHeader("Image")
.setAutoWidth(true).setFlexGrow(0);
grid.addColumn(Person::getFirstName).setHeader("First name");
grid.addColumn(Person::getLastName).setHeader("Last name");
grid.addColumn(GridWrapCellContent::formatAddress).setHeader("Address");
grid.addThemeVariants(GridVariant.LUMO_WRAP_CELL_CONTENT);
Thanks, It is working.