📱
HTML Widget
  • HTML Widget
  • Getting Started
    • Regular Use
    • Module Use
  • About
    • The Function
    • Types
  • Components
    • <widget>
    • <stack>
    • <spacer>
    • <img>
    • <text>
    • <date>
    • <style>
    • <!-- Comment -->
  • Add-ons
    • Add-ons
    • <symbol>
    • <hr>
    • <progress>
    • <blockquote>
  • Template
    • Templates
    • Mapping
    • Render
  • Examples
    • Hello, World!
    • Reddit Widget
  • Closing Remarks
    • Bug Fixes and Feedback
    • Support
Powered by GitBook
On this page
  • Inner Text
  • Attributes
  1. Components

<text>

About The Text Tag

<widget>
  <text>Hello, world!</text>
</widget>

The <text> element defines a widget text element.

Inner Text

The <text> element can have any character as the inner text excluding < and > and trimming white space. < must be converted to the &lt; entity. > must be converted to the &gt; entity. & can optionally be converted to the &amp; entity.

Attributes

font - font

Defines the font family and size of the text.

lineLimit - posInt

Defines the maximum line limit.

minimumScaleFactor - decimal

Defines the minimum scale factor.

shadowColor - colour

Defines the shadow color.

shadowOffset - point

Defines the shadow offset.

shadowRadius - posInt

Defines the shadow radius.

textColor - colour

Defines the text color.

textOpacity - decimal

Defines the opacity of the text.

url - url

Defines the text url.

alignText alignText

Defines the horizontal alignment of the text.

Previous<img>Next<date>

Last updated 14 days ago