In order to display the toast messages, we have to fire standard event "force:showToast". Now Salesforce recommend using lightning:notificationsLibrary for displaying messages in lightning via notices and toasts.
Toast helps in providing information about status on user action.
Notices helps in displaying the system related issue or update about any maintenance.
NotificationsLibrary makes very easy for developer to display notices and toast.
How to display Notices using lightning:notificationsLibrary
Below is sample code:
How to display Toast using lightning:notificationsLibrary
Below is sample code:
Hope this will help!!!
Toast helps in providing information about status on user action.
Notices helps in displaying the system related issue or update about any maintenance.
NotificationsLibrary makes very easy for developer to display notices and toast.
How to display Notices using lightning:notificationsLibrary
Below is sample code:
How to display Toast using lightning:notificationsLibrary
Below is sample code:
Hope this will help!!!
Dial QuickBooks Support Phone Number 1-800-986-4607 now to meet your accounting needs at one place. QuickBooks is really an outstanding product that comes into existence to cater to the needs of small as well as medium scale business.
ReplyDelete