Search code examples
java-8vaadin8

In Vaadin 8, how to convert Boolean to checkbox in a grid


In Vaadin 8 framework, using Vaadin Grid, how do I present a Boolean object in each row as a checkbox?


Solution

  • I think the easiest solution is to use the ComponentRenderer introduced with Vaadin 8.1 (currently beta, so you need to get it from snapshot repository). See Vaadin docs: https://vaadin.com/docs/-/part/framework/components/components-grid.html#components.grid.renderer.