Repeated

works.iterative.forms.Repeated
See theRepeated companion class
object Repeated

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Repeated.type

Members list

Type members

Classlikes

case class Instance(path: AbsolutePath, item: String, itemType: String, segment: Option[SectionSegment], index: Int)

One item of a repeated group: the path to render the template under, the raw item key and type from the __items convention, and the position within the group. An item of a group without templates has no segment — it renders nothing but its data is never dropped.

One item of a repeated group: the path to render the template under, the raw item key and type from the __items convention, and the position within the group. An item of a group without templates has no segment — it renders nothing but its data is never dropped.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(id: RelativePath, default: Option[(String, String)] = ..., optional: Boolean = ...)(elems: SectionSegment*): Repeated
def instances(path: AbsolutePath, repeated: Repeated, state: FormState): List[Instance]

The instances of a repeated group for the current state — the one expansion every walker shares. Item types without a matching template fall back to the first one; a group without templates keeps every item as an instance with no segment.

The instances of a repeated group for the current state — the one expansion every walker shares. Item types without a matching template fall back to the first one; a group without templates keeps every item as an instance with no segment.

Attributes

def template(elems: List[SectionSegment], itemType: String): Option[SectionSegment]

The template a row of the given item type renders under — matching template by id, first one as fallback; a group without templates has none.

The template a row of the given item type renders under — matching template by id, first one as fallback; a group without templates has none.

Attributes