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
Thiago Barbosa 10Thiago Barbosa 10 

I have to show the custom Toast for the user with open link(Read More) for the user read all message_2

<div aura:id="error-toast-container" class="slds wr-toast-container wr-toast-container-format slds-hide" >
		<div aura:id="error-toast" class="slds-notify slds-notify_toast wr-toast-format" role="alert">
                <span aura:id="iconToast" class="slds-hide slds-icon_container slds-icon-utility-error slds-m-right_small slds-no-flex slds-align-top">
                    <lightning:icon iconName="utility:warning"/>
                </span>
			<div class="slds-notify__content">
				<h2 class="slds-text-heading_small">
					<lightning:formattedText value='{!v.errorMessage}'/>  
					<lightning:button aura:id="addLine" class="slds-hide wr-destructive-link-format" variant="" onclick="{!c.onReadMore}">{!$Label.c.ReadMore}</lightning:button> 
				</h2> 
			</div>
			<lightning:buttonIcon variant="bare" class="slds-notify__close slds-button_icon-inverse" title="Close" iconName="utility:close" onclick="{!c.closeToast}" size="large">
			</lightning:buttonIcon>
		</div>
	</div>

============================================================
Controller : 

onReadMore : function(component, event, helper){  
        $A.util.addClass(component.find('error-toast-container'), 'slds-hide');
    }

 
ANUTEJANUTEJ (Salesforce Developers) 
Hi Thiago,

As mentioned in https://developer.salesforce.com/forums/ForumsMain?id=9062I000000IRtl

Can you elaborate on the issue you are facing is it that you want to show a custom toast message when read more is clicked?

Looking forward to your response.

Regards,
Anutej