Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub
t

FieldInput

trait FieldInput[Input]

Structural decoding and encoding for a field's editable input type.

Decoding receives every submitted value, in encounter order. It should report malformed control shape here; semantic refinement belongs in emap.

Defined by scalive.FieldInput. View source (scalive/api/src/scalive/forms/FieldInput.scala:8-13)

Methods2

decode

def decode(raw: Vector[String]): Either[FieldIssues, Input]

Decodes the complete raw value vector without discarding duplicate values.

Defined by scalive.FieldInput.decode. View source (scalive/api/src/scalive/forms/FieldInput.scala:10-10)

encode

def encode(input: Input): Vector[String]

Encodes an editable value to the raw representation retained by a Form.

Defined by scalive.FieldInput.encode. View source (scalive/api/src/scalive/forms/FieldInput.scala:13-13)