HtmlBuilder

open class HtmlBuilder

Allows for the building of HTML strings, similar to the DualTelemetry HtmlItem for Driver Station telemetry. This serves as a good alternative when not working with the Driver Station telemetry messages, such as in the case of Driver Station logs, FtcDashboard, or other HTML output.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun bgColor(color: String, text: String): Text.HtmlBuilder
Insert a background color to display the text in.
Link copied to clipboard
open fun big(text: String): Text.HtmlBuilder
Insert big text into the HTML string.
Link copied to clipboard
open fun bold(text: String): Text.HtmlBuilder
Insert bold text into the HTML string.
Link copied to clipboard
open fun color(color: String, text: String): Text.HtmlBuilder
Insert a foreground color to display the text in.
Link copied to clipboard
Insert a new line into the HTML string.
Link copied to clipboard
open fun equals(obj: Any): Boolean
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun header(level: Int, text: String): Text.HtmlBuilder
Insert a header into the HTML string.
Link copied to clipboard
open fun italic(text: String): Text.HtmlBuilder
Insert italic text into the HTML string.
Link copied to clipboard
open fun small(text: String): Text.HtmlBuilder
Insert small text into the HTML string.
Link copied to clipboard
Insert strikethrough text into the HTML string.
Link copied to clipboard
Insert subscript text into the HTML string.
Link copied to clipboard
Insert superscript text into the HTML string.
Link copied to clipboard
open fun tag(tag: String, text: String): Text.HtmlBuilder
Insert a custom tag supplied by the user into the HTML string.
Link copied to clipboard
open fun text(text: String): Text.HtmlBuilder
Insert normal text into the HTML string.
Link copied to clipboard
open fun toString(): String
Build the HTML string.
Link copied to clipboard
Insert underline text into the HTML string.