I want to be able to make a toast message have two lines of information:

enter image description here

When I look in the documentation, I don't see anything that specifies how to add details to the message, the way we see toast on LightningDesignSystem.com.

Is there a parameter that gets passed into toastEvent.setParams?

showToast : function(component, event, helper) {
    var toastEvent = $A.get("e.force:showToast");
        "title": "Success!",
        "message": "The record has been updated successfully."

The title is the first line of information, the message is the second line. Note how the second line is smaller than the first.

| improve this answer | |
  • Yes, that's it. Thank you! I don't know why it didn't stand out to me that way. – Matt Smith Nov 14 '18 at 14:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.