given_Form_String

dev.cheleb.scalamigen.Form.given_Form_String
object given_Form_String extends Form[String]

Form for to a string, aka without validation.

Attributes

Graph
Supertypes
trait Form[String]
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

override def render(path: List[Symbol], variable: Var[String], syncParent: () => Unit)(using factory: WidgetFactory, errorBus: EventBus[(String, ValidationEvent)]): L.HtmlElement

Render a form for a variable.

Render a form for a variable.

Sometimes the form is a part of a larger form and the parent form needs to be updated when the variable changes. This is the purpose of the syncParent function.

Value parameters

factory

the widget factory

syncParent

a function to sync the parent state

variable

the variable to render

Attributes

Definition Classes

Inherited methods

def fromString(s: String): Option[String]

Parse a string and return an Option[A].

Parse a string and return an Option[A].

Attributes

Inherited from:
Form
def labelled(label: String, required: Boolean): Form[String]

Attributes

Inherited from:
Form
def toString(a: String): String

Attributes

Inherited from:
Form
def xmap[B](to: (B, String) => B)(from: B => String): Form[B]

Attributes

Inherited from:
Form

Givens

Inherited givens

given given_Owner: L.Owner

Attributes

Inherited from:
Form