Vaadin Grid Row Details Example

Is anyone aware of a good example for implementing row details for Vaadin 8 grid?

Here’s one example:
https://github.com/vaadin/framework/blob/master/uitest/src/main/java/com/vaadin/tests/components/grid/GridLayoutDetailsRow.java

-Olli

In Vaadin 8 the interface for DetailsGenerator has been defined for use with Lambda expression like:

grid.setDetailsGenerator(myBean -> {
            HorizontalLayout layout = new HorizontalLayout();
            Label label = new Label(myBean.getMyValue());
            layout.addComponent(label);  
            return layout;
});

In addition to above you need to control if details is open with setDetailsVisible(item, visible); method.

Thanks Olli and Tatu. I have been able to get everything working properly.