Form

org.specs2.form.Form
See theForm companion class
case object Form

Companion object of a Form to create:

  • an empty Form
  • a Form with no rows but a title
  • a Form with no title but one row

Attributes

Companion
class
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Form.type

Members list

Type members

Classlikes

object given_AsResult_Form extends AsResult[Form]

a Form can be implicitly transformed to results

a Form can be implicitly transformed to results

Attributes

Supertypes
trait AsResult[Form]
class Object
trait Matchable
class Any
Self type

Inherited types

type MirroredElemLabels = EmptyTuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Singleton
type MirroredElemTypes = EmptyTuple

Attributes

Inherited from:
Singleton
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
type MirroredMonoType = Singleton.this.type

The mirrored *-type

The mirrored *-type

Attributes

Inherited from:
Singleton
type MirroredType = Singleton.this.type

Attributes

Inherited from:
Singleton

Value members

Concrete methods

def apply(): Form

Attributes

Returns

an empty form

def apply(title: String): Form

Attributes

Returns

an empty form with a title

def apply(table: DataTable): Form

create a Form from a DataTable

create a Form from a DataTable

Attributes

def formStacktraces(form: Form)(using args: Arguments): NodeSeq

This method creates a div to display the exceptions of a form ready to be embedded in a table

This method creates a div to display the exceptions of a form ready to be embedded in a table

Attributes

def tabs[T](values: Seq[T])(f: T => Tabs): Form

create new tabs in the Form

create new tabs in the Form

Attributes

def th(h1: Field[_], hs: Field[_]*): Form

Attributes

Returns

a Form with one row and cells formatted as header cells

def th(h1: String, hs: String*): Form

Attributes

Returns

a Form with one row and cells formatted as header cells

def titleAndRows(form: Form)(using args: Arguments): NodeSeq

This method creates an xml representation of a Form as an Html table rows, ready to be embedded in a table

This method creates an xml representation of a Form as an Html table rows, ready to be embedded in a table

Attributes

Returns

the xml representation of a Form

def toXml(form: Form)(using args: Arguments): Elem

This method creates an xml representation of a Form as an Html table

This method creates an xml representation of a Form as an Html table

If the Form has issues, stacktraces are written and hidden under the table

Attributes

Returns

the xml representation of a Form

def tr(c1: Cell, cs: Cell*): Form

Attributes

Returns

a Form with one row

def tr(row: Row): Form

Attributes

Returns

a Form with one row

def trs[T](values: Seq[T])(f: T => Row): Form

create new rows in the Form

create new rows in the Form

Attributes

Inherited methods

def fromProduct(p: Product): MirroredMonoType

Create a new instance of type T with elements taken from product p.

Create a new instance of type T with elements taken from product p.

Attributes

Inherited from:
Singleton
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Givens

Givens

a Form can be implicitly transformed to results

a Form can be implicitly transformed to results

Attributes