io.laminext.validation.ValidationSyntax.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of validation-core_sjs1_3 Show documentation
Show all versions of validation-core_sjs1_3 Show documentation
Laminar utilities and components
package io.laminext.validation
import com.raquo.laminar.api.L._
import io.laminext.validation.ops.element.InputValidationOps
import io.laminext.validation.ops.element.TextAreaValidationOps
import io.laminext.validation.ops.EventStreamValidationOps
import io.laminext.validation.ops.SignalValidationOps
import io.laminext.validation.ops.ValidationOps
trait ValidationSyntax {
val V: Validations.type = Validations
implicit def syntaxValidation[A, Err, Out](v: Validation[A, Err, Out]): ValidationOps[A, Err, Out] =
new ValidationOps[A, Err, Out](v)
implicit def syntaxSignalValidation[A](signal: Signal[A]): SignalValidationOps[A] =
new SignalValidationOps[A](signal)
implicit def syntaxEventStreamValidation[A](stream: EventStream[A]): EventStreamValidationOps[A] =
new EventStreamValidationOps[A](stream)
implicit def syntaxInputValidatedValue(el: Input): InputValidationOps =
new InputValidationOps(el)
implicit def syntaxTextAreaValidatedValue(el: TextArea): TextAreaValidationOps =
new TextAreaValidationOps(el)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy