RepeatedGroup
class RepeatedGroup[Owner]A row-field namespace tied to one exact repeated group value.
Its singleton type prevents fields and FormRowKey values from being mixed across groups.
Parameters
rootThe form root that declares this group.
pathThe group's browser path, such as
contact[phones].
Defined by scalive.RepeatedGroup. View source (scalive/api/src/scalive/forms/FormField.scala:281-328)
Types3
Field
type Field = ([Input, Value] =>> FormField[type, Input, Value])The type of a row field declared by this group, with editable Input and refined Value.
Defined by scalive.RepeatedGroup.Field. View source (scalive/api/src/scalive/forms/FormField.scala:290-290)
Initial
type Initial = FormInitial[type]The type of an initial assignment for one row of this group, for row.
Defined by scalive.RepeatedGroup.Initial. View source (scalive/api/src/scalive/forms/FormField.scala:293-293)
Key
type Key = FormRowKey[type]The type of a row key for this group.
Defined by scalive.RepeatedGroup.Key. View source (scalive/api/src/scalive/forms/FormField.scala:287-287)
Methods5
field
def field[Input](relative: String, input: FieldInput[Input]): Field[Input, Input]Declares a row-relative field with a custom editable-input codec.
Defined by scalive.RepeatedGroup.field. View source (scalive/api/src/scalive/forms/FormField.scala:299-301)
optionalText
def optionalText(relative: String): Field[Option[String], Option[String]]Declares a single-value optional row text field.
Defined by scalive.RepeatedGroup.optionalText. View source (scalive/api/src/scalive/forms/FormField.scala:314-315)
product
def product[Row]: FormRowProduct[Owner, type, Row]Completes the row schema, which contributes a Vector[Row] to the root product.
Name each row field after the field of Row it fills, in order, as in
Phones.product[Phone]((label = Label, number = Number)). The compiler checks the names and
the value types.
Defined by scalive.RepeatedGroup.product. View source (scalive/api/src/scalive/forms/FormField.scala:327-327)
text
def text(relative: String, default: String = ..., duplicateIssue: FieldIssue = ...): Field[String, String]Declares a single-value row text field.
Defined by scalive.RepeatedGroup.text. View source (scalive/api/src/scalive/forms/FormField.scala:304-311)
texts
def texts(relative: String): Field[Vector[String], Vector[String]]Declares a row field that preserves every submitted value in order.
Defined by scalive.RepeatedGroup.texts. View source (scalive/api/src/scalive/forms/FormField.scala:318-319)
Values3
address
val address: FormAddress[Owner]Logical group address used for group-level validation.
Defined by scalive.RepeatedGroup.address. View source (scalive/api/src/scalive/forms/FormField.scala:296-296)
path
val path: FormPathThe group's browser path, such as contact[phones].
Defined by scalive.RepeatedGroup.path. View source (scalive/api/src/scalive/forms/FormField.scala:283-283)
root
val root: FormRootThe form root that declares this group.
Defined by scalive.RepeatedGroup.root. View source (scalive/api/src/scalive/forms/FormField.scala:282-282)