StyledText
Defined in: api/node/rust-module.d.cts:305
Styled text parsed from markdown or plain text.
Use StyledText.fromMarkdown() or StyledText.fromPlainText() to create instances.
Assign the result to a styled-text property in a Slint component to display it.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new StyledText():
StyledText
Returns
Section titled “Returns”StyledText
Methods
Section titled “Methods”equals()
Section titled “equals()”equals(
other):boolean
Defined in: api/node/rust-module.d.cts:315
Returns true if this styled text is equal to other.
Parameters
Section titled “Parameters”StyledText
Returns
Section titled “Returns”boolean
fromMarkdown()
Section titled “fromMarkdown()”
staticfromMarkdown(markdown):StyledText
Defined in: api/node/rust-module.d.cts:313
Parses markdown into styled text.
Parameters
Section titled “Parameters”markdown
Section titled “markdown”string
Returns
Section titled “Returns”StyledText
Throws
Section titled “Throws”if the markdown contains unsupported syntax.
fromPlainText()
Section titled “fromPlainText()”
staticfromPlainText(text):StyledText
Defined in: api/node/rust-module.d.cts:307
Creates styled text from plain text without applying markdown parsing.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”StyledText
© 2026 SixtyFPS GmbH