-
Notifications
You must be signed in to change notification settings - Fork 148
Notifications improvements #5175
Copy link
Copy link
Open
Labels
candidatePossible candidate for future releasesPossible candidate for future releasesin: flowuisize: M
Description
Introduce jmix-notification component that supports:
- Dedicated areas for
title,bodyandfooter title,bodyandfootercan be either component or text- Markdown text (same as
vaadin-tooltip) -bodyonly prefixandsuffixslots- Close button
- Modality like a dialog
- Click on notification (and backdrop) closes it. Configurable.
titleandfooterare optional- Same API as
vaadin-notification Notificationsbean -Notifications.Typeassumes default icon (prefix)
Original issue as motivation
Currently, there is no easy way to show a notification with icon and simple text or title+description. Need to use custom component each time or override Notifications bean to used such notifications by default.
It will be useful:
- Have API in notifications for adding icons.
Example:notifications.create("Unable to execute operaion") .withType(Notifications.Type.ERROR) .withIcon(VaadinIcon.WARNING.create()) // also it can be a custom icon .build(); - Configure usage of icons in notifications by default instead of adding each time
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
candidatePossible candidate for future releasesPossible candidate for future releasesin: flowuisize: M
