Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub
c

FormInteraction

class FormInteraction[Owner]

Owner-scoped validation visibility, independent of editable form values.

Parameters

used

The addresses of fields the browser submitted without an _unused_ marker.

visibility

Whether every error is visible, as after a submission, or only as feedback allows.

feedback

The policy that decides when a field's errors appear before a submission.

blurred

The addresses of fields that focus has left, which AfterBlur relies on.

Defined by scalive.FormInteraction. View source (scalive/api/src/scalive/forms/FormState.scala:39-77)

Methods3

isBlurred

def isBlurred(address: FormAddress[Owner]): Boolean

Returns whether focus has left the field at address.

Defined by scalive.FormInteraction.isBlurred. View source (scalive/api/src/scalive/forms/FormState.scala:51-51)

isUsed

def isUsed(address: FormAddress[Owner]): Boolean

Returns whether the field at address is used or all errors are visible.

Defined by scalive.FormInteraction.isUsed. View source (scalive/api/src/scalive/forms/FormState.scala:47-48)

isVisible

def isVisible(address: FormAddress[Owner]): Boolean

Returns whether errors at address show under the current visibility and feedback policy.

Defined by scalive.FormInteraction.isVisible. View source (scalive/api/src/scalive/forms/FormState.scala:54-58)

Values4

blurred

val blurred: Set[FormAddress[Owner]]

The addresses of fields that focus has left, which AfterBlur relies on.

Defined by scalive.FormInteraction.blurred. View source (scalive/api/src/scalive/forms/FormState.scala:43-43)

feedback

val feedback: FormFeedback

The policy that decides when a field's errors appear before a submission.

Defined by scalive.FormInteraction.feedback. View source (scalive/api/src/scalive/forms/FormState.scala:42-42)

used

val used: Set[FormAddress[Owner]]

The addresses of fields the browser submitted without an _unused_ marker.

Defined by scalive.FormInteraction.used. View source (scalive/api/src/scalive/forms/FormState.scala:40-40)

visibility

val visibility: ErrorVisibility

Whether every error is visible, as after a submission, or only as feedback allows.

Defined by scalive.FormInteraction.visibility. View source (scalive/api/src/scalive/forms/FormState.scala:41-41)