Package io.jmix.ui

Interface Notifications

All Known Implementing Classes:
NotificationsImpl

public interface Notifications
Notifications API.
  • Field Details

  • Method Details

    • create

      Creates a notification builder.
      Example of showing a notification:
      
       notifications.create()
               .withType(NotificationType.WARNING)
               .withCaption("Alert")
               .withPosition(Notifications.Position.BOTTOM_RIGHT)
               .show();
       
      Returns:
      notification builder
    • create

      Creates a notification builder with the passed notification type.
      Example of showing a notification:
      
       notifications.create(NotificationType.WARNING)
               .withCaption("Alert")
               .withDescription("Please specify name")
               .withPosition(Notifications.Position.BOTTOM_RIGHT)
               .show();
       
      Parameters:
      type - notification type
      Returns:
      notification builder