Hi
I have below code. I want title (Success) should appear on left side as Bold. Line should be from beginning till end.
JavaScript
function ShowPopup(heading, body, type) {
swalInit.fire({
title: `${heading}
`,
html: `${body}
`,
icon: type,
position: 'center', // Adjust position as needed
allowOutsideClick: false,
confirmButtonText: 'OK',
timer: 6000
});
}Thanks

Amit MohantyRank #112 · 20K reputationPosted Aug 20, 2024, 6:32 AM EDT
function ShowPopup(heading, body, type) { swalInit.fire({ title: `${heading} `, html: `${body} `, icon: type, position: 'center', allowOutsideClick: false, confirmButtonText: 'OK', timer: 6000 }); }Ramco RamcoRank #462 · 5.4K reputationPosted Aug 20, 2024, 6:44 AM EDT
Hi Amit
It is still displaying similar to the image attached earlier.
Thanks
Amit MohantyRank #112 · 20K reputationPosted Aug 20, 2024, 7:03 AM EDT
Try this:
function ShowPopup(heading, body, type) { swalInit.fire({ title: ` ${heading} `, html: `${body} `, icon: type, position: 'center', allowOutsideClick: false, confirmButtonText: 'OK', timer: 6000 }); }Ramco RamcoRank #462 · 5.4K reputationPosted Aug 20, 2024, 7:10 AM EDT
Hi Amit
Title is appearing in Bold. No Line & also not getting displayed on left side.
Do we need to include any js file.
Thanks