How can we achieve a new line in an LWC toast message? I tried using <br>
and /n
.. but it is not working. It's working in Aura, but not in LWC.
JS-
showSuccessToast() {
var sMsg = 'Salesforce documentation is available in the app.<br/>';
sMsg += 'Click ? in the upper-right corner.';
const evt = new ShowToastEvent({
title: 'Record Update',
message: sMsg,
variant: 'success',
mode: 'sticky'
});
this.dispatchEvent(evt);
}