onClickCommand

Sets a click event that runs a command when the text is clicked.

Return

The HoverTextBuilder instance for method chaining.

Parameters

command

The command to run when the text is clicked.