JengaAction

class JengaAction(val label: String, val onClick: () -> Unit)(source)

A labeled tap action: the text to show and the handler to run, bundled so a label can never be rendered without something to tap. Blocks that expose an optional trailing action take a nullable JengaAction rather than a separate label and handler pair.

Constructors

Link copied to clipboard
constructor(label: String, onClick: () -> Unit)

Properties

Link copied to clipboard
Link copied to clipboard
val onClick: () -> Unit

Functions

Link copied to clipboard
fun copy(label: String = this.label, onClick: () -> Unit = this.onClick): JengaAction