Ex19: Notifications
Notifications are used to send notifications to users.
The initial code for this example is in master.
- Open
src/index.ts
. Import notify function from Core.
- Add handleNotifyButtonClick function to exec field
tip
parameters of the notify's function
title - required parameter. Title of the notification.
message - optional parameter. Message to user.
icon - required parameter. We recommend to use images in SVG format.
More fields will be added soon.
Here is the result code of the example: ex19-notifications.
Run the dapplet: