Class Notifications

java.lang.Object
io.jmix.flowui.Notifications

@Component("flowui_Notifications") public class Notifications extends Object
Configures and displays popup notifications.
  • Field Details

  • Constructor Details

  • Method Details

    • show

      public void show(String text)
      Shows a simple text notification.
      Parameters:
      text - notification text
    • show

      public void show(String title, String message)
      Shows a notification with a title and message.
      Parameters:
      title - notification title
      message - notification message
    • show

      public void show(com.vaadin.flow.component.Component component)
      Shows a component in the notification popup.
      Parameters:
      component - component to show in notification
    • create

      Returns a builder for configuring and displaying the notification.
      Parameters:
      text - notification text
    • create

      public Notifications.NotificationBuilder create(String title, String message)
      Returns a builder for configuring and displaying the notification.
      Parameters:
      title - notification title
      message - notification message
    • create

      public Notifications.NotificationBuilder create(com.vaadin.flow.component.Component component)
      Returns a builder for configuring and displaying the notification.
      Parameters:
      component - component to show in notification