textWithCommand

open fun textWithCommand(text: String, command: String): ComponentBuilder

Appends a text component that runs the given command when clicked.

Return

this component builder for chaining

Parameters

text

the text content to append

command

the command to run when clicked