question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom place message and title

See original GitHub issue

With this code: const Toast = Swal.mixin({ toast: true, position: 'top-end', showConfirmButton: false, timer: 183000, timerProgressBar: true, didOpen: (toast) => { toast.addEventListener('mouseenter', Swal.stopTimer) toast.addEventListener('mouseleave', Swal.resumeTimer) } })

Toast.fire({ icon: 'success', title: 'Signed in successfully', html: 'This is the message description of the alert.<br>With some detaills.' })

I get this result: image

It’s a very large alert. What I realy need, it’s this: image

This next image explain the detail of my need: image

How can I do it??

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
limontecommented, Apr 14, 2021

The default look before:

image

The default look after #2215:

image

And bu using the customClass parameter you can achieve the requested styling with the centered icon: https://codepen.io/limonte/pen/XWpqROJ

image

What do you think @manukieli?

0reactions
limontecommented, Apr 14, 2021

If you’re happy, I’ll go ahead and close the issue.

@manukieli Please don’t hesitate to open new issues with styling requests.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom Title Plaque - Etsy
Check out our custom title plaque selection for the very best in unique or custom, handmade pieces from our shops.
Read more >
Use this Power BI feature to display custom message or titles
Want a custom message or title in your Power BI report? Not happy with the formatting options of the card visual or buttons?...
Read more >
PROS - Reserve Personalized Plate
This site is available to all Alabama registrants to reserve a personalized license plate message. Any personalized license plate reservation will be held ......
Read more >
Custom title on JOptionPane message dialogs - Stack Overflow
Try this JOptionPane.showMessageDialog(null, "You won the game in 7 tries!", "my title", JOptionPane.INFORMATION_MESSAGE);. You need to supply the message ...
Read more >
Customize your email message - Microsoft Support
Change the appearance of your email messages, including colors, backgrounds, graphics, tables, lists, and more.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found