dev.cheleb.scalamigen.Form
See theForm companion object
A form for a type A.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object given_Form_String
- Self type
-
Form[A]
Members list
Value members
Abstract methods
def render(path: List[Symbol], variable: Var[A], 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
Concrete methods
Parse a string and return an Option[A].
Parse a string and return an Option[A].
Attributes
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
Givens
Givens
In this article