Snippet: N-Line HTML Text

Fresh out of the bakery, coming to you with a new #PowerApps code snippet!

Fresh out of the bakery, coming to you with a new **#PowerApps** code snippet! This one was definitely a fun challenge - provide a solution to dynamically truncate text in a Power Apps Canvas app based on the desired number of lines (n). Using HTML control was definitely a way to go here, as out of the box, there is no similar functionality built in. In the provided sample, you can either reuse it as a User Defined Function (UDF) or a standalone YAML code snippet. 🔗 I've published the complete code snippet on my GitHub for you to explore: https://github.com/jan-chlebek/Power-Platform-Snippets/tree/main/n-line-html-text. I am also happy to contribute it directly to the Microsoft 365 & Power Platform Community powerplatform-snippets repository and Power Apps Tools libraries - it should soon be visible there as well. Can't wait for you to check it out and share your thoughts ![N-Line HTML Text](./Media/N-Line-HTML-Text.gif)
Browse articles