dev.cheleb.scalamigen

Members list

Type members

Classlikes

trait Defaultable[A]

Typeclass for default values.

Typeclass for default values.

This typeclass is used to provide default values for a given type. It is used to provide default values for form fields when creating a new object, for example.

It is necessary to provide a default value for every type used in the application and wrapped in a option.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Defaultable

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
class FieldName(val value: String) extends StaticAnnotation

Annotation for field names

Annotation for field names

Use this annotation to specify field names for case class fields.

Attributes

Supertypes
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
trait Form[A]

A form for a type A.

A form for a type A.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type
Form[A]
object Form extends AutoDerivation[Form]

Attributes

Companion
trait
Supertypes
trait AutoDerivation[Form]
trait Derivation[Form]
trait SealedTraitDerivation
trait CommonDerivation[Form]
class Object
trait Matchable
class Any
Show all
Self type
Form.type
case object HiddenEvent extends ValidationEvent

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
final case class InvalideEvent(errorMessage: String) extends ValidationEvent

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
trait IronTypeValidator[T, C]

Type validator for IronType.

Type validator for IronType.

Iron is a library for compile-time or runtime type validation.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

This is raw laminar implementation of the widget factory.

This is raw laminar implementation of the widget factory.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object NameUtils

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
NameUtils.type
case class NoPanel(asTable: Boolean, fieldCss: String, labelCss: String, panelCss: String) extends StaticAnnotation

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
Show all
case class Panel(name: String, asTable: Boolean, fieldCss: String, labelCss: String, panelCss: String) extends StaticAnnotation

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
Show all
case object ShownEvent extends ValidationEvent

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
ShownEvent.type
case object ValidEvent extends ValidationEvent

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
ValidEvent.type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object HiddenEvent
object ShownEvent
object ValidEvent

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
trait Validator[A]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Validator

Validators for common types. They are the base validation used by Iron derivations.

Validators for common types. They are the base validation used by Iron derivations.

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Validator.type

This is a trait that defines the interface for the widget factory.

This is a trait that defines the interface for the widget factory.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes

Value members

Concrete methods

def enumForm[A](values: Array[A], f: Int => A): Form[A]
def numericForm[A](f: String => Option[A], zero: A): Form[A]

Form for a numeric type.

Form for a numeric type.

Attributes

def secretForm[A <: String](to: String => A): Form[A]
def stringForm[A](to: String => A): Form[A]

Extensions

Extensions

extension (errorBus: EventBus[(String, ValidationEvent)])
def watch: Signal[Map[String, ValidationStatus]]
extension (path: List[Symbol])
def key: String
extension [A](va: Var[A])
def asForm(using wf: WidgetFactory)(using Form[A]): ReactiveHtmlElement[HTMLElement]

Render a form for the variable.

Render a form for the variable.

Value parameters

wf

The widget factory.

Attributes

def asForm(errorBus: EventBus[(String, ValidationEvent)])(using wf: WidgetFactory)(using Form[A]): ReactiveHtmlElement[HTMLElement]

Render a form for the variable.

Render a form for the variable.

Value parameters

errorBus

The error bus.

wf

The widget factory.

Attributes

def errorBus: EventBus[(String, ValidationEvent)]

Buid an error bus for the variable that will be used to display errors.

Buid an error bus for the variable that will be used to display errors.

Attributes