WebLabel / Raw HTML Technique

In case you’ve missed this…

@Christian Schmitz has shared a really nice tip that shows how you can use a WebLabel and raw HTML to display an image in a Xojo Web app. This is particularly helpful if you want to display a scaled image and ensure that the dimensions are retained if the window is resized.

https://mbsplugins.net/archive/2018-04-06/Tip_of_the_day_Using_Label_to_/monkeybreadsoftware_blog_archive

Thanks

Christian’s idea for images is very nice idea! Raw rocks. Xojo has a post about the raw tag. I wish it worked for WebButton as well. For now, I’m using WebLabel as buttons. :slight_smile:

Raw can be used to show FontAwesome Icons with minimal effort.

Put this in App.HTMLHeader

[code]

[/code]

Then put something like this in a WebLabel

<raw><i class="fas fa-user"></i></raw>

Anyone else have any using raw for anything else?