Widget API: SimpleHTML:SetText

Revision as of 04:47, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API SimpleHTML SetText to API SimpleHTML SetText without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Widget API ← SimpleHTML < SetText

This method will set the SimpleHTML text content to the supplied text.

SimpleHTML:SetText("arg1");

ParametersEdit

ArgumentsEdit

("arg1")
arg1
String - Text that will be displayed in the SimpleHTML element.

ReturnsEdit

nil
nil - Will always return nil.

DetailsEdit

The SimpleHTML element supports (as hinted by the name) a simple HTML-like markup. It also supports normal plain text with standard escape sequences. If the string does not contain the "<HTML><BODY>...</BODY></HTML>" structure (with only whitespace before the "<HTML>" tag) it will automagically revert to plain mode.

See UIOBJECT SimpleHTML for supported markup.

See AlsoEdit