How to add images in Vaadin 8 Grid in Respective Rows

Here goes the Code for it

Column<Company, ThemeResource> imageColumn = grid.addColumn(
                p -> new ThemeResource(p.getName() + ".jpg"),
                        new ImageRenderer<Company>()).setCaption("Image");


Set the name of Image as you have set in the List while Populating your Pojo.



Comments

Popular posts from this blog

Navigation in Vaadin.

Drag and drop items from one Grid to another

State space search / blocks world problem by heuristic approach /TIC TAC TOE