Showing pop-ups

Pop-up

Pop-ups are non-intrusive messages that inform the user whether an action was completed or aborted successfully. Typically they confirm something. Pop-ups look like Post-IT notes. They go away automatically and don’t require user action. Use pop-ups to confirm what the user did and provide them with confidence and assurance.

To show pop-ups, use the standard Vaadin Notification.

Usage examples:

// Send an INFO notification to the current user.
void openInfoNotification(String message) {
    Notification notification = Notification.show(message, Notification.Type.HUMANIZED_MESSAGE);
    notification.setDelayMsec(3600);
}

// Send an ERROR notification to the current user.
void openErrorNotification(String message) {
    Notification.show(message, Notification.Type.ERROR_MESSAGE);
}
Feedback

DX Core

×

Location

This widget lets you know where you are on the docs site.

You are currently perusing through the DX Core docs.

Main doc sections

DX Core Headless PaaS Legacy Cloud Incubator modules