hans-georg1
(hans-georg gloeckler)
1
I was using in vaadin 8 the following code
grid.addColumn(Person::getRole).setRenderer(role -> role != null ? role.getRolename() : null, new TextRenderer()).setEditorComponent(cbxRole, Person::setRole);
How can i make this in vaadin 12beta?
Excuse me please when i ask so directly, but i struggle a lot with it.
Thomas534
(Thomas Mx)
2
hans-georg gloeckler:
I was using in vaadin 8 the following code
grid.addColumn(Person::getRole).setRenderer(role -> role != null ? role.getRolename() : null, new TextRenderer()).setEditorComponent(cbxRole, Person::setRole);
How can i make this in vaadin 12beta?
Excuse me please when i ask so directly, but i struggle a lot with it.
There’s the Grid.addColumn(Renderer<T> renderer)
method. https://vaadin.com/docs/flow/components/tutorial-flow-grid.html#using-renderers