Skip to content

Auto Inference AUTO

When type is not specified, Erupt automatically infers which edit component to use based on the Java field type.

auto

Field TypeMapped Component
Integer / Float / DoubleEditType.NUMBER
BooleanEditType.BOOLEAN
DateEditType.DATE
OthersEditType.INPUT

Basic Usage

java
@EruptField(
    edit = @Edit(title = "Text Input") // equivalent to type = EditType.INPUT
)
private String input;

@EruptField(
    edit = @Edit(title = "Numeric Input") // equivalent to type = EditType.NUMBER
)
private Integer number;

@EruptField(
    edit = @Edit(title = "Boolean Toggle") // equivalent to type = EditType.BOOLEAN
)
private Boolean bool;

@EruptField(
    edit = @Edit(title = "Date Picker") // equivalent to type = EditType.DATE
)
private Date date;

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.