Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIWSweetAlert Text linefeed
#1
How can I pass a linefeed <br> to the Text property of a TIWSweetAlert component?
Reply
#2
(07-18-2024, 10:50 AM)Comograma Wrote: How can I pass a linefeed <br> to the Text property of a TIWSweetAlert component?

Using normal line breaks (#10#13) should work. Have you tried?
Reply
#3
(07-29-2024, 09:58 AM)Alexandre Machado Wrote:
(07-18-2024, 10:50 AM)Comograma Wrote: How can I pass a linefeed <br> to the Text property of a TIWSweetAlert component?

Using normal line breaks (#10#13) should work. Have you tried?

No, doesn't work.
I have to workaround that by calling Swal.fire and use the html property to do line breaks, instead of text property, as the text can be HTML text. Something that should be enhanced.
Code:
ExecuteJS('Swal.fire({title: "Some title", icon: "info", html: "Line 1<br>Line2"});');
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)