Skip to content

@Edit

Configures how a field behaves in the add/edit form, including the component type, required validation, search behavior, read-only state, and more.

Attributes

AttributeDescription
titleForm field label
descDescription / hint text
notNullWhether the field is required, defaults to false
showWhether to display the component, defaults to true
placeHolderPlaceholder text for input components
typeComponent type, defaults to AUTO, see the type table below
searchSearch configuration, see @Search
readonlyRead-only configuration, see @Readonly
ifRenderDynamically controls whether the component is rendered (ExprBool), see ifRender Dynamic Rendering
dynamicDynamically controls the component state based on another field's value, see @Dynamic
onchangeValue-change linkage (1.13.2+), see OnChange
onchangeParamsParameters (String[]) passed to the onchange handler, readable inside the OnChange interface
orderBySort rule, HQL ORDER BY syntax; only applicable when the field is a related object
filterFilter condition, HQL WHERE syntax; only applicable when the field is a related object
promptAI prompt, added in 2.0.0 — injected as field-level context when erupt-ai invokes this field's tool, and used as the authoring guidance for the AI writing assistant
cellEditWhether this field may be edited directly in the table, defaults to true (2.2.0+), see @Power cellEdit
aiWhether the AI writing assistant is offered on this field, defaults to true; only text-bearing components carry it (2.2.0+)

Component Types (EditType)

type supports 30+ component types. For detailed configuration options and examples for each type, see the Components overview.

Contributors

The avatar of contributor named as YuePeng YuePeng
The avatar of contributor named as Claude Opus 5 (1M context) Claude Opus 5 (1M context)

Changelog

Released under the Apache-2.0 License.