Attributes
Members list
Type members
Classlikes
Form for to a string, aka without validation.
Form for to a string, aka without validation.
Attributes
- Supertypes
- Self type
-
given_Form_String.type
Value members
Concrete methods
Must be implemented by the user of Magnolia to construct a typeclass for case class T
using the provided type info. E.g. if we are deriving Show[T]
typeclasses, and T
is a case class Foo(...)
, we need to constuct Show[Foo]
.
Must be implemented by the user of Magnolia to construct a typeclass for case class T
using the provided type info. E.g. if we are deriving Show[T]
typeclasses, and T
is a case class Foo(...)
, we need to constuct Show[Foo]
.
This method is called 'join' because typically it will join together the typeclasses for all the parameters of the case class, into a single typeclass for the case class itself. The field CaseClass.params can provide useful information for doing this.
Value parameters
- caseClass
-
information about the case class
T
, its parameters, and their typeclasses
Attributes
Render a variable with a form.
Render a variable with a form.
Type parameters
- A
-
the type of the variable
Value parameters
- fa
-
the form for the variable, either given or derived by magnolia <3
- factory
-
the widget factory
- syncParent
-
a function to sync the parent state
- v
-
the variable to render
Attributes
This must be implemented by the user of Magnolia to construct a Typeclass for 'T', where 'T' is a Sealed Trait or Scala 3 Enum, using the provided type info. E.g. if we are deriving 'Show[T]' typeclasses, and T is an enum 'Suit' (eg with values Diamonds, Clubs, etc), we need to constuct 'Show[Suit]'.
This must be implemented by the user of Magnolia to construct a Typeclass for 'T', where 'T' is a Sealed Trait or Scala 3 Enum, using the provided type info. E.g. if we are deriving 'Show[T]' typeclasses, and T is an enum 'Suit' (eg with values Diamonds, Clubs, etc), we need to constuct 'Show[Suit]'.
This method is called 'split' because it will ''split'' the different possible types of the SealedTrait, and handle each one to finally produce a typeclass capable of handling any possible subtype of the trait.
A useful function for implementing this method is SealedTrait#choose, which can take a value instance and provide information on the specific subtype of the sealedTrait which that value is.
Attributes
Inherited methods
Attributes
- Inherited from:
- CommonDerivation
Attributes
- Definition Classes
-
Derivation -> SealedTraitDerivation
- Inherited from:
- Derivation
Attributes
- Inherited from:
- Derivation
Attributes
- Inherited from:
- CommonDerivation
Attributes
- Inherited from:
- Derivation
Attributes
- Inherited from:
- CommonDerivation
Attributes
- Inherited from:
- CommonDerivation
Attributes
- Inherited from:
- SealedTraitDerivation
Attributes
- Inherited from:
- Derivation
Attributes
- Inherited from:
- SealedTraitDerivation
Givens
Givens
Form for a either of L or R
Form for a either of L or R
Value parameters
- ld
-
the default value for a L
- lf
-
the left form for a L, given or derived by magnolia
- rd
-
the default value for a R
- rf
-
the right form for a R, given or derived by magnolia
Attributes
Form for a BigDecimal.
Form for a BigDecimal.
Attributes
Form for a BigInt.
Form for a BigInt.
Attributes
Form for a Boolean.
Form for a Boolean.
Basically a checkbox.
Attributes
Form for an Double.
Form for an Double.
Attributes
Form for an Float.
Form for an Float.
Attributes
Form for an Int.
Form for an Int.
Attributes
Form for an Iron type. This is a form for a type that can be validated with an Iron type.
Form for an Iron type. This is a form for a type that can be validated with an Iron type.
Type parameters
- C
-
the type of the Iron type contraint
- T
-
the base type of the Iron type
Value parameters
- default
-
the default value for the Iron type
- validator
-
the Iron type validator
- widgetFactory
-
the widget factory
Attributes
Form for a LocalDate
Form for a LocalDate
Render a date picker. // FIXME should be able to set the format
Attributes
Form for an Long.
Form for an Long.
Attributes
Form for a Nothing, not sure it is still really needed :-/
Form for a Nothing, not sure it is still really needed :-/
Attributes
Form for to a string, aka without validation.
Form for to a string, aka without validation.
Attributes
Form for a List[A]
Form for a List[A]
Value parameters
- fa
-
the form for A
- idOf
-
a function to get the id of an A, important for the split function.
Attributes
Form for an Option[A]
Form for an Option[A]
Render with clear button if the value is Some, else render with a set new value button.
Value parameters
- d
-
the default value for A
- fa
-
the form for A
Attributes
Inherited givens
Attributes
- Inherited from:
- AutoDerivation