Form

kreuzberg.extras.forms.Form
See theForm companion object
trait Form[T]

Encapsulates the whole form for some value T

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Leaf
class Node[T, R]

Members list

Value members

Abstract methods

def codec: Codec[T, List[String]]

Codec for form values.

Codec for form values.

Attributes

def fields: List[FormField[_]]

The fields of a form

The fields of a form

Attributes

Validator for the form.

Validator for the form.

Attributes

Concrete methods

def chainValidator(validator: Validator[T]): Form[T]

Add another validator

Add another validator

Attributes

def xmap[U](mapFn: T => U, contraMapFn: U => T): Form[U]

Maps to another type.

Maps to another type.

Attributes