Hi, I am new to using vaadin and im working on a project to develop a management system id like to add a button,that shows status as a notification, to each of the row of a grid view
could i get help on this
Hi, I am new to using vaadin and im working on a project to develop a management system id like to add a button,that shows status as a notification, to each of the row of a grid view
could i get help on this
Vaadin has extensive documentation, [here]
(https://vaadin.com/docs/v14/flow/components/tutorial-flow-grid.html#using-component-renderers) you will find what you are looking for.
And a short code example:
grid.addComponentColumn(item -> {
Button btn = new Button("Show Status", click -> {
// TODO show notification using data of `item`
});
...
return btn;
})
.setKey("statusBtn"); // .setKey() if you ever need to retrieve the column from the grid using grid.getColumnByKey("statusBtn")