To display a Retool notification toast whenever a realtime notification is received, we need the Weavy Notification Events to generate events that we can act on.
The component needs to be placed where it's always loaded, for instance in the Header. The only visual appearance it has is a spinner while loading.
Then we'll just connect the Notification event to show notifications.
- Make room after the
navigation1
component in the Header
and add the Weavy Notification Events component at the end of the header.
- Open the Component inspector for
weavyNotificationEvents1
and add an Event handler for the Notification
event.
- Set the Action to Show Notification.
- Set the Title to
{{ self.notificationTitle }}
.
- Set the Description to
{{ self.notificationDescription }}
.