FormControl
class FormControl[Owner, Input, Value, Msg]A reusable field rendering handle. Its ids are scoped to the owning form instance. view exposes read-only field data; use this handle's ids and ARIA attributes when rendering feedback so multiple instances of the same definition do not share DOM identities.
Defined by scalive.FormControl. View source (scalive/api/src/scalive/forms/FormBinding.scala:192-320)
Methods19
blurAttributes
def blurAttributes: Vector[Mod.Attr[Msg]]Interaction wiring only, for custom controls that own their id/name/value attributes. Composite widgets should report blurred when leaving their logical focus boundary instead.
Defined by scalive.FormControl.blurAttributes. View source (scalive/api/src/scalive/forms/FormBinding.scala:224-239)
checkbox
def checkbox(checkedValue: String, mods: Mod.Input[Msg]*): HtmlElement[Msg]Defined by scalive.FormControl.checkbox. View source (scalive/api/src/scalive/forms/FormBinding.scala:271-280)
def checkbox(mods: Mod.Input[Msg]*): HtmlElement[Msg]Defined by scalive.FormControl.checkbox. View source (scalive/api/src/scalive/forms/FormBinding.scala:269-269)
def email(mods: Mod.Input[Msg]*): HtmlElement[Msg]Defined by scalive.FormControl.email. View source (scalive/api/src/scalive/forms/FormBinding.scala:253-254)
errorFeedback
def errorFeedback(render: Signal[FormError[Owner]] => Mod[Nothing], mods: Mod.Input[Nothing]*): HtmlElement[Nothing]Defined by scalive.FormControl.errorFeedback. View source (scalive/api/src/scalive/forms/FormBinding.scala:302-313)
errorId
def errorId: Signal[String]Defined by scalive.FormControl.errorId. View source (scalive/api/src/scalive/forms/FormBinding.scala:202-202)
fieldValue
def fieldValue: Signal[String]Defined by scalive.FormControl.fieldValue. View source (scalive/api/src/scalive/forms/FormBinding.scala:203-203)
hasVisibleErrors
def hasVisibleErrors: Signal[Boolean]Defined by scalive.FormControl.hasVisibleErrors. View source (scalive/api/src/scalive/forms/FormBinding.scala:206-206)
id
def id: Signal[String]Defined by scalive.FormControl.id. View source (scalive/api/src/scalive/forms/FormBinding.scala:200-200)
inputAttributes
def inputAttributes: Vector[Mod.Attr[Msg]]Scalar input identity, retained value, and blur wiring. Does not include type or ARIA.
Defined by scalive.FormControl.inputAttributes. View source (scalive/api/src/scalive/forms/FormBinding.scala:242-243)
name
def name: Signal[String]Defined by scalive.FormControl.name. View source (scalive/api/src/scalive/forms/FormBinding.scala:201-201)
onBlur
def onBlur(f: String => Msg): FormControl[Owner, Input, Value, Msg]Adds an application scalar blur handler after feedback dispatch. The browser value is passed
as with on.blur.withValue. Commands are ordered but do not wait for server acknowledgements;
this does not guarantee race-free normalization against later full-form snapshots. Missing
values (including unchecked checkboxes) become an empty string. A multi-select supplies only
its native scalar value here; use the form update for its complete value vector.
Defined by scalive.FormControl.onBlur. View source (scalive/api/src/scalive/forms/FormBinding.scala:214-215)
def onBlur(message: Msg): FormControl[Owner, Input, Value, Msg]Adds a message-only application blur handler after feedback dispatch.
Defined by scalive.FormControl.onBlur. View source (scalive/api/src/scalive/forms/FormBinding.scala:218-219)
password
def password(mods: Mod.Input[Msg]*): HtmlElement[Msg]Defined by scalive.FormControl.password. View source (scalive/api/src/scalive/forms/FormBinding.scala:256-257)
rawValues
def rawValues: Signal[Vector[String]]Defined by scalive.FormControl.rawValues. View source (scalive/api/src/scalive/forms/FormBinding.scala:204-204)
select
def select(options: Iterable[(String, String)], mods: Mod.Input[Msg]*): HtmlElement[Msg]Defined by scalive.FormControl.select. View source (scalive/api/src/scalive/forms/FormBinding.scala:291-300)
text
def text(mods: Mod.Input[Msg]*): HtmlElement[Msg]Defined by scalive.FormControl.text. View source (scalive/api/src/scalive/forms/FormBinding.scala:250-251)
textarea
def textarea(mods: Mod.Input[Msg]*): HtmlElement[Msg]Defined by scalive.FormControl.textarea. View source (scalive/api/src/scalive/forms/FormBinding.scala:282-289)
validationAttributes
def validationAttributes: Vector[Mod.Attr[Nothing]]Defined by scalive.FormControl.validationAttributes. View source (scalive/api/src/scalive/forms/FormBinding.scala:245-248)
visibleErrors
def visibleErrors: Signal[Vector[FormError[Owner]]]Defined by scalive.FormControl.visibleErrors. View source (scalive/api/src/scalive/forms/FormBinding.scala:205-205)
Values2
blurred
val blurred: MsgDefined by scalive.FormControl.blurred. View source (scalive/api/src/scalive/forms/FormBinding.scala:197-197)
view
val view: Signal[FormFieldView[Owner, Input, Value]]Defined by scalive.FormControl.view. View source (scalive/api/src/scalive/forms/FormBinding.scala:193-193)