Ramco Ramco

Ramco Ramco

  • 439
  • 3.4k
  • 544.4k

Title Message

Aug 20 2024 10:19 AM

Hi

  I have below code. I want title (Success) should appear on left side as Bold. Line should be from beginning till end.

function ShowPopup(heading, body, type) {
        swalInit.fire({
            title: `<div style="border-bottom: 1px solid #ddd; padding-bottom: 10px;">${heading}</div>`,
            html: `<p style="margin-top: 10px;">${body}</p>`,
            icon: type,
            position: 'center', // Adjust position as needed
            allowOutsideClick: false,
            confirmButtonText: 'OK',
            timer: 6000
        });
    }

Thanks


Answers (4)