Hi Olli,
I appreciate the help and will be using it. That said my main issue is how to code implementing a different style based on data present in the column and not on a click event. In the below example I’m only dealing with click events that happen
after
the button is clicked.
So:
gridMain.addColumn(
//Somewhere in here I'm having issues trying to code the
//different .addStyleName("XXXXX") formatting based on data.
item -> "Column_header",
new ButtonRenderer(
clickEvent -> {
if(((Item)clickEvent.getItem()).getAvailableCases() > 0) {
//Whatever Action
}
})
).setCaption("WHATEVER");
Please let me know if I’m still not being clear.
Thanks!