Skip to content

@EruptField

A field-level annotation that configures how a field is displayed in the table (@View) and how it behaves in forms (@Edit).

Attributes

AttributeDescription
viewsTable column configuration, accepts an array to support multiple columns; omit to hide the field from the table
editEdit component configuration; omit to exclude the field from forms — the framework will not trust any frontend-submitted value for this field
sortDisplay order; lower numbers appear first, defaults to field declaration order
paramsCustom extension parameters, passed through to the frontend

Example

java
@EruptField(
    sort = 10,
    views = @View(title = "Name"),
    edit = @Edit(title = "Name", notNull = true)
)
private String name;

Notes

  • Omitting views hides the field from the table.
  • Omitting edit prevents the field from being edited in forms, and the framework will not trust any value submitted by the frontend for this field.

Contributors

The avatar of contributor named as YuePeng YuePeng

Changelog

Released under the Apache-2.0 License.