I need add new style for some DataGrid rows, depending on variable.
For example:
table.setRowStyles(new RowStyles<Entry>() {
@Override
public String getStyleNames(Entry entry, int rowIndex) {
return entry.isStyle() ? "newStyle" : null;
}
});
"newStyle" is global css style.
The problem is style not applied to rows until i add !important
to css definition.
But with !important
i lost all default DataGrid styles and have only "newStyle".
UPDATE: css file
.newStyle {
color : lightgray;
}