FormInteraction
class FormInteraction[Owner]Owner-scoped validation visibility, independent of editable form values.
Parameters
usedThe addresses of fields the browser submitted without an
_unused_marker.visibilityWhether every error is visible, as after a submission, or only as
feedbackallows.feedbackThe policy that decides when a field's errors appear before a submission.
blurredThe 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]): BooleanReturns 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]): BooleanReturns 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]): BooleanReturns 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: FormFeedbackThe 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: ErrorVisibilityWhether 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)