FormField

io.eezo.http.FormField
final case class FormField(name: String, label: String, inputType: String)

One field, as the view side names it.

name is the exact Scala label, because that is what the input carries and what parse reads back; label is humanised for people. This is published rather than internal on purpose: it makes Form[A] the single source of a model's presentation vocabulary, so a derived show or index reads its column headings here rather than from Table[A].columns, whose names are snake case and belong to the database side.

Attributes

Source
Form.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala