Presentation

data class Presentation(val title: Any, val alwaysShow: Boolean? = null, val fn: (value: Any) -> String)

Constructors

Link copied to clipboard
constructor(title: Any, alwaysShow: Boolean? = null, fn: (value: Any) -> String)

Properties

Link copied to clipboard
val alwaysShow: Boolean? = null
Link copied to clipboard
val fn: (value: Any) -> String
Link copied to clipboard
var swatchColors: (value: Any) -> List<Int>?

Optional swatch colours for the value fn returns: one ARGB colour per line, in the same order as the lines.

Link copied to clipboard
val title: Any

Functions

Link copied to clipboard

Swatch colours for value, or an empty list when this presentation declares none or the feature is off.

Link copied to clipboard
fun resolvedTitle(value: Any): String

String title, or the result of a (value: Any) -> String title function.

Link copied to clipboard
fun setTitle(newTitle: Any): Presentation