Form

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
Companion
class
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels = EmptyTuple
Inherited from
Singleton
type MirroredElemTypes = EmptyTuple
Inherited from
Singleton
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror
type MirroredMonoType = Singleton
Inherited from
Singleton
type MirroredType = Singleton
Inherited from
Singleton

Value members

Concrete methods

def apply(): Form
Returns

an empty form

def apply(title: String): Form
Returns

an empty form with a title

def apply(table: DataTable): Form

create a Form from a DataTable

create a Form from a DataTable

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

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

create new tabs in the Form

create new tabs in the Form

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

a Form with one row and cells formatted as header cells

def th(h1: String, hs: String*): Form
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

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

Returns

the xml representation of a Form

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

a Form with one row

def tr(row: Row): Form
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

Inherited methods

def fromProduct(p: Product): MirroredMonoType
Inherited from
Singleton
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product

Givens

Givens

given given_AsResult_Form: AsResult[Form]

a Form can be implicitly transformed to results

a Form can be implicitly transformed to results