CSS Styling
The cssClass() element can be used to render additional CSS classes in the HTML (a wrapping <div>) that represents the domain object.
Application-specific CSS can then be used to target and adjust the UI representation of that particular element.
For example:
@DomainObject
@DomainObjectLayout(
cssClass="x-core-entity"
)
public class ToDoItem { /* ... */ }
|
The similar @DomainObjectLayout#cssClassFa() element is also used as a hint to apply CSS, but in particular to allow Font Awesome icons to be rendered as the icon for classes. |