function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Prakash GBPrakash GB 

Toast notification on list view

Hi,

is it possible to have custom toast message on list view page? my requirement is, i have inlcuded list buttons on list view. after completeing action need to show alert message to user.

Thanks in advance
Prakash GB
Raj VakatiRaj Vakati
Yes .. You can firethe notification using the notification lib .. .but is your list button is the custom  button ??
Prakash GBPrakash GB
Raj,

Yes. list button is custom button.
Could you please brief about how is it possible?

Thanks
Prakash GB
Raj VakatiRaj Vakati
give me code and i will update the code and  give it to u 

Refer this link 


https://developer.salesforce.com/docs/component-library/bundle/lightning:notificationsLibrary
 
<aura:component>
    <lightning:notificationsLibrary aura:id="notifLib"/>
    <lightning:button name="toast" label="Show Toast" onclick="{!c.handleShowToast}"/>
</aura:component>
 
({    
    handleShowToast : function(component, event, helper) {
        component.find('notifLib').showToast({
            "title": "Notif library Success!",
            "message": "The record has been updated successfully."
        });
    }
})