Component Builder
class ComponentBuilder
Content copied to clipboard
A builder that makes components easy to use from Kotlin.
Constructors
ComponentBuilder
Link copied to clipboard
fun ComponentBuilder()
Content copied to clipboard
Functions
append
Link copied to clipboard
Add text.
Adds text with a specified color.
fun append(text: String, vararg decorations: TextDecoration): ComponentBuilder
Content copied to clipboard
Add text with decoration.
fun append(text: String, color: Color, vararg decorations: TextDecoration): ComponentBuilder
Content copied to clipboard
Adds text with color, decorations
appendln
Link copied to clipboard
Adds line break.
Adds text with line break.
Adds component with line breaks.
Adds colored text with line breaks.
fun appendln(text: String, vararg decorations: TextDecoration): ComponentBuilder
Content copied to clipboard
Adds decorated text with line breaks.
fun appendln(text: String, color: Color, vararg decorations: TextDecoration): ComponentBuilder
Content copied to clipboard
Adds decorated colored text with line breaks.
bold
Link copied to clipboard
Adds bold text.
Adds bold text with color.
fun bold(text: String, vararg decorations: TextDecoration): ComponentBuilder
Content copied to clipboard
Adds bold text with decorations
fun bold(text: String, color: Color, vararg decorations: TextDecoration): ComponentBuilder
Content copied to clipboard
Adds bold text with color, decorations
bold Colorln
Link copied to clipboard
Adds colored bold text wit hline break
boldln
Link copied to clipboard
Adds bold text with line breaks.
Adds colored bold text with line breaks.
fun boldln(text: String, vararg decorations: TextDecoration): ComponentBuilder
Content copied to clipboard
Adds decorated bold text with line breaks.
fun boldln(text: String, color: Color, vararg decorations: TextDecoration): ComponentBuilder
Content copied to clipboard
Adds decorated colored text with line breaks.