Methods
append
- append(text: string | TextBuilder): TextBuilder
-
clear
- clear(): TextBuilder
-
color
- color(hex: string): TextBuilder
-
- color(r: number, g: number, b: number, a: number): TextBuilder
-
Parameters
-
r: number
-
g: number
-
b: number
-
a: number
link
- link(url: string): TextBuilder
-
reset
- reset(): TextBuilder
-
tag
- tag(content: string): TextBuilder
-
text
- text(str: string): TextBuilder
-
toString
- toString(): string
-
Returns string
url
- url(url: string): TextBuilder
-
Constructors
constructor
- new TextBuilder(): TextBuilder
-
Clear all styles (color, link).