append

abstract infix fun append(content: String): ComponentBuilder

Appends a string content to this component builder.

Return

this component builder for chaining

Parameters

content

the string content to append


abstract infix fun append(component: Component): ComponentBuilder

Appends a component to this component builder.

Return

this component builder for chaining

Parameters

component

the component to append


open infix fun append(any: Any?): ComponentBuilder

Appends any value to this component builder with automatic type conversion. String values are appended as text components, Component values are appended directly, and other types are converted to strings via toString() before appending. Null values are converted to empty strings.

Return

this component builder for chaining

Parameters

any

the value to append (can be String, Component, or any other type including null)


Extension property to append this string directly to the component builder. Provides a convenient property-style syntax for appending strings.