showText

abstract infix fun showText(component: Component): Styler

Applies a hover event that shows the given component.

Return

this Styler instance for chaining

Parameters

component

the component to show


open infix fun showText(text: String): Styler

Applies a hover event that shows the given text.

Return

this Styler instance for chaining

Parameters

text

the text to show


abstract fun showText(consumer: ComponentBuilder.() -> Unit): Styler

Applies a hover event that shows a component built with a DSL.

Return

this Styler instance for chaining

Parameters

consumer

the function to build the hover text component