Class clove::NotificationControllerΒΆ
-
class
clove
::
NotificationController
Controller for clove notifications.
Notifications are small popups, typically in the top/right corner of the window. They can inform the user about some status changes or provide some ways for user interactions.
Use clove::notifications.
Public Functions
-
notify
(config, notificationConfig) Opens a new notification.
notificationConfig may contain:
timeout
: Closes the notification automatically after this amount of seconds.closeable
: If to provide a close button.priority
: Controls stuff like ordering. Default is 0, higher values mean more importance.- Return
The clove::Widget implementing the notification. Use it for operations like removal or getting subwidget. This widget spans a new clove::NameScope!
- Parameters
config
: A widget configuration for the notification body, as for clove::build().notificationConfig
: Some configuration aspects about the notification.
-