kreuzberg.extras.forms

Members list

Type members

Classlikes

trait Codec[U, T]

Lifts a value from an encoding

Lifts a value from an encoding

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Xmap[A, B, E]
object simpleInt.type
object simpleString.type
object codec.type
object codec.type
object Codec

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Codec.type
trait DefaultFieldType[T]

Returns the default HTML field type for a type

Returns the default HTML field type for a type

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait Error

Encodes Errors of the Form system.

Encodes Errors of the Form system.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Error

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Error.type
trait Form[T]

Encapsulates the whole form for some value T

Encapsulates the whole form for some value T

Attributes

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

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Form.type
case class FormComponent[T](form: Form[T], default: T, fieldBuilder: FormFieldComponentBuilder) extends SimpleComponentBase

Responsible for displaying a form.

Responsible for displaying a form.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class SimpleComponentBase
trait Component
trait Identified
trait SimpleContextDsl
trait ComponentDsl
trait ContextDsl
class Object
trait Matchable
class Any
Show all
case class FormField[T](name: String, label: String, placeholder: String, formType: String, codec: Codec[T, String], validator: Validator[T], required: Boolean)

A Single Field Element.

A Single Field Element.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
trait FormFieldComponent extends Component

Attributes

Companion
object
Supertypes
trait Component
trait Identified
class Object
trait Matchable
class Any
Known subtypes
class Default

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Default.type

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
object Generator

Generator for Forms.

Generator for Forms.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Generator.type
sealed trait RecursiveFormFields[T <: Tuple] extends Form[T]

RecursiveFormElements based upon a Tuple.

RecursiveFormElements based upon a Tuple.

Attributes

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

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
case class UnhandledDecodingError(codecError: DecodingError) extends RuntimeException

A not handled error in Codec.decodeOrThrow

A not handled error in Codec.decodeOrThrow

Attributes

Supertypes
trait Product
trait Equals
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
case class UseField[-T](name: String, label: String, placeholder: String, ftype: String, validator: Validator[T], required: Boolean) extends StaticAnnotation

Annotation to control field generation.

Annotation to control field generation.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
Show all
case class UseValidator[-T](validator: Validator[T]) extends StaticAnnotation

Annotation to control main validator.

Annotation to control main validator.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
Show all
trait Validator[-T]

Simple validators

Simple validators

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object succeed.type
object Validator

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Validator.type

Types

type DecodingResult[T] = Either[DecodingError, T]

Either an Decoding error or a value.

Either an Decoding error or a value.

Attributes

type Result[T] = Either[Error, T]

Either an Error or a value.

Either an Error or a value.

Attributes