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])(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

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 renderLabel(label: String, required: Boolean)(using factory: WidgetFactory): L.HtmlElement

Render the label form associated with a variable

Render the label form associated with a variable

Value parameters

factory

the widget factory

label

label of the variable

required

if the variable is mandatory or not

Attributes

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

Attributes

Inherited from:
Form
def withFieldName(n: String): Form[String] & Form[String]

Attributes

Inherited from:
Form
def withPanelConfig(label: Option[String], asTable: Boolean): Form[String] & Form[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