Smart UI Components & Libraries – Grid, Scheduler, Gantt, Kanban for Angular, React, Next.js, Vue, Blazor, JavaScript › Forums › General Discussions › Window › Adding text to Window with This topic has 4 replies, 2 voices, and was last updated 10 months, 3 weeks ago by tbettinazzi@axioma.it. Viewing 5 posts - 1 through 5 (of 5 total) Author Posts December 6, 2024 at 4:48 pm #111893 tbettinazzi@axioma.itParticipant I need to use a window to show some text. The text is produced dynamically and then I can’t create it as static html text. I tried using innerText and it works. However, sometimes, when the text should contain a cr/lf in order to be better formatted. I tried with <br/> and with /r/n but none worked. How can I do that ? Tks December 9, 2024 at 12:39 pm #111904 MarkovKeymaster Hi, To put HTML instead of Text, you need to use innerHTML, not innerText. Regards, Markov Smart UI Team https://www.htmlelements.com/ December 10, 2024 at 4:23 pm #111912 tbettinazzi@axioma.itParticipant Sorry but it doesn’t seem to work. With the following js code the window appears empty with any message I can use (also “Bye”). const window = document.createElement(“smart-dialog-window”); window.innerHTML= message; This reply was modified 10 months, 3 weeks ago by tbettinazzi@axioma.it. December 11, 2024 at 7:49 am #111916 MarkovKeymaster If you need to dynamically update the content of a window, you should use the updateContent method. Regards, Markov Smart UI Team https://www.htmlelements.com/ December 11, 2024 at 9:01 am #111918 tbettinazzi@axioma.itParticipant It works but the HTML is still not understood and <br/> is not interpreted as carriage return. Tks Author Posts Viewing 5 posts - 1 through 5 (of 5 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In With Google Log In