Hi Roman
Thank you for your tip. Following code is working.
@Install(to = "artLotsTable.quantity", subject = "columnGenerator")
private Component artLotsTableQuantityColumnGenerator(ArtLot artLot)
{
TextField elem = uiComponents.create(TextField.class);
htmlAttributes.applyCss( elem, "text-align: right; width:50px;background-color:red;color:white;");
elem.setValue(artLot.getQuantity().toString());
return elem;
}
I would prefer to use the styleProvider. BUT
Where does the application load the correct css ? When I create a custom theme, there are a lot of dependencies unsolved.
For example in the newstyle.css
@import "../helium/helium";
the system does not find the helium css’s and on the marketplace with jmix there are no css addons anymore.
How to proceed ?
Best regards
Felix