Skip to content

Callout CALLOUT 2.0.2+ ​

Renders a block of static guidance content (HTML supported) inside the form — ideal for filling instructions or notices. The field is display-only: its value is never collected by the form nor persisted to the database, so it should be marked @Transient.

callout

Basic Usage ​

java
@Transient
@EruptField(
    edit = @Edit(title = "Filling Guide", type = EditType.CALLOUT,
        calloutType = @CalloutType(value = "Fields marked with <b>*</b> are required.", style = CalloutType.Style.INFO))
)
private String callout;

Configuration @CalloutType ​

java
public @interface CalloutType {

    String value() default ""; // callout content, supports HTML

    Style style() default Style.CARD; // display style

    enum Style {
        CARD,    // bordered card panel
        INFO,    // info alert banner
        SUCCESS, // success alert banner
        WARNING, // warning alert banner
        ERROR    // error alert banner
    }

}

TIP

The CARD style renders a bordered panel; the other styles render an alert banner in the corresponding color.

Contributors

The avatar of contributor named as YuePeng YuePeng
The avatar of contributor named as Claude Fable 5.1 Claude Fable 5.1

Changelog

Released under the Apache-2.0 License.