RichTooltip

data class RichTooltip(title: String, mainIcon: Painter?, descriptionSections: List<String>?, footerIcon: Painter?, footerSections: List<String>?)

Rich tooltip. In its most basic form, the rich tooltip has a title and one (possible multiline) description text:

+--------------------------------+
| Title                          |
|        Some description text   |
+--------------------------------+

The .descriptionSections can be used to add multiple sections to the description:

+--------------------------------+
| Title                          |
|        First multiline         |
|        description section     |
|                                |
|        Second multiline        |
|        description section     |
|                                |
|        Third multiline         |
|        description section     |
+--------------------------------+

The .mainIcon can be used to place an image below the title and to the left of the description sections:

+--------------------------------+
| Title                          |
| *******  First multiline       |
| *image*  description section   |
| *******                        |
|          Second multiline      |
|          description section   |
+--------------------------------+

The .footerSections can be used to add (possibly) multiple footer sections that will be shown below a horizontal separator:

+--------------------------------+
| Title                          |
|        First multiline         |
|        description section     |
|                                |
|        Second multiline        |
|        description section     |
|--------------------------------|
| A multiline footer section     |
| placed below a separator       |
+--------------------------------+

The .footerIcon can be used to place an image to the left of the footer sections:

+--------------------------------+
| Title                          |
|        First multiline         |
|        description section     |
|                                |
|        Second multiline        |
|        description section     |
|--------------------------------|
| *******  A multiline           |
| *image*  footer section        |
| *******                        |
+--------------------------------+

Here is a fully fledged rich tooltip that shows all these parts present:

+--------------------------------+
| Title                          |
| *******  First multiline       |
| *image*  description section   |
| *******                        |
|          Second multiline      |
|          description section   |
|--------------------------------|
| *******  First multiline       |
| *image*  footer section        |
| *******                        |
|          Second multiline      |
|          footer section        |
+--------------------------------+

Constructors

Link copied to clipboard
fun RichTooltip(title: String, mainIcon: Painter? = null, descriptionSections: List<String>? = null, footerIcon: Painter? = null, footerSections: List<String>? = null)

Properties

Link copied to clipboard
val descriptionSections: List<String>? = null
Link copied to clipboard
val footerIcon: Painter? = null
Link copied to clipboard
val footerSections: List<String>? = null
Link copied to clipboard
val mainIcon: Painter? = null
Link copied to clipboard
val title: String