Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub
c

FormSubmitter

class FormSubmitter[Owner, Schema, Action <: reflect.Enum]

A finite, definition-owned contract for rendering and decoding form submit controls.

The browser representation remains an ordinary successful control with a stable name and value. Decoding proves only that untrusted form data selected a declared action; applications must still authorize the resulting operation.

Defined by scalive.FormSubmitter. View source (scalive/api/src/scalive/forms/FormSubmitter.scala:11-54)

Methods4

attributes

def attributes(action: Action): Mod.Attr[Nothing]

Renders native submit-control attributes for action.

Defined by scalive.FormSubmitter.attributes. View source (scalive/api/src/scalive/forms/FormSubmitter.scala:34-42)

button

def button[Msg](action: Action)(mods: Mod.Input[Msg]*): HtmlElement[Msg]

Renders a native submit button for action.

Defined by scalive.FormSubmitter.button. View source (scalive/api/src/scalive/forms/FormSubmitter.scala:45-47)

decode

def decode(data: FormData): Either[FormSubmitter.DecodeError, Action]

Decodes exactly one declared submit action from a lossless browser payload.

Defined by scalive.FormSubmitter.decode. View source (scalive/api/src/scalive/forms/FormSubmitter.scala:21-27)

raw

def raw(action: Action): RawFormSubmitter

Returns the raw successful-control pair for tests and transport adapters.

Defined by scalive.FormSubmitter.raw. View source (scalive/api/src/scalive/forms/FormSubmitter.scala:30-31)

Values1

name

val name: String

Defined by scalive.FormSubmitter.name. View source (scalive/api/src/scalive/forms/FormSubmitter.scala:14-14)

Browser field name shared by controls rendered from this typed submitter.