CSS Styling
The cssClass() element can be used to render additional CSS classes in the HTML (a wrapping <div>) that represents the action.
Application-specific CSS can then be used to target and adjust the UI representation of that particular element.
For example:
public class ToDoItem {
@ActionLayout(cssClass="x-key")
public ToDoItem postpone(LocalDate until) { /* ... */ }
...
}
|
The similar @ActionLayout#cssClassFa annotation attribute is also used as a hint to apply CSS, specifically to add Font Awesome icons on action menu items or buttons. |