Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
o

FormRoot

object FormRoot

Creates stable form-root values.

Assign the result to a stable val before declaring fields so its singleton type can enforce ownership throughout the rooted form API.

Defined by scalive.FormRoot. View source (scalive/api/src/scalive/forms/FormDefinition.scala:253-266)

Methods1

apply

def apply(name: String): FormRoot

Creates a form root from a non-empty browser field name.

Nested syntax such as profile[address] is parsed as a FormPath.

Parameters

name

the root browser name

Throws

IllegalArgumentException

if name parses to an empty form path

Defined by scalive.FormRoot.apply. View source (scalive/api/src/scalive/forms/FormDefinition.scala:263-266)