WebLabel / Raw HTML Technique

  1. 4 months ago

    Tim D

    Apr 6 Pre-Release Testers, Xojo Pro, XDC Speakers Richmond, VA

    In case you've missed this...

    @ChristianSchmitz 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

  2. Christian S

    Apr 6 Pre-Release Testers, Xojo Pro, XDC Speakers Germany

    Thanks

  3. Hal G

    Apr 6 Pre-Release Testers, Xojo Pro, XDC Speakers CampSoftware.com
    Edited 4 months ago

    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. :)

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

    -image-

    Put this in App.HTMLHeader

    <!-- FontAwesome https://fontawesome.com/icons -->
    <script defer src='https://domain.com/pathtofontawesomelib/js/all.js'></script>

    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?

or Sign Up to reply!