repeatWithIndex

views.html.helper.repeatWithIndex
object repeatWithIndex extends RepeatHelper

Attributes

Graph
Supertypes
trait RepeatHelper
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(field: Field, min: Int)(fieldRenderer: (Field, Int) => Html): Seq[Html]

Render a field a repeated number of times.

Render a field a repeated number of times.

Useful for repeated fields in forms.

Value parameters

field

The field to repeat.

fieldRenderer

A function to render the field.

min

The minimum number of times the field should be repeated.

Attributes

Returns

The sequence of rendered fields.

Inherited methods

protected def indexes(field: Field, min: Int): Seq[Int]

Attributes

Inherited from:
RepeatHelper