Handover

com.alecdorrington.laminarcomponents.Handover
object Handover

Hands text shown for reading back to the field editing it the moment the reader types. The field takes the focus while the keystroke is still being handled, so that the keystroke itself lands in it.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Handover.type

Members list

Type members

Classlikes

final class Pending

Where the field shown next puts its caret, asked for during one event.

Where the field shown next puts its caret, asked for during one event.

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def onTyping(armed: Signal[Boolean], hand: () => Unit): Modifier[L.HtmlElement]

Calls hand on each keystroke that would type into the text while armed, made in this element or with nothing focused, which sends it to the document's body.

Calls hand on each keystroke that would type into the text while armed, made in this element or with nothing focused, which sends it to the document's body.

Value parameters

armed

Whether typing hands the text over.

hand

What hands it over.

Attributes

Returns

The modifier of the element showing the text.