Atozed Forums
TIWSweetAlert Text linefeed - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: TIWSweetAlert Text linefeed (/thread-4332.html)



TIWSweetAlert Text linefeed - Comograma - 07-18-2024

How can I pass a linefeed <br> to the Text property of a TIWSweetAlert component?


RE: TIWSweetAlert Text linefeed - Alexandre Machado - 07-29-2024

(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?


RE: TIWSweetAlert Text linefeed - Comograma - 07-31-2024

(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"});');