Skip to content

Instantly share code, notes, and snippets.

@mgladdish
mgladdish / WidgetWithOnlyOneReportedConstraint.scala
Last active June 12, 2019 12:26
Shows an inputText with multiple constraints, only the first of which will be reported on the form
inputText("validationExample", "messages", firstOnly(required(), isNumber))
@mgladdish
mgladdish / WidgetWithMultipleConstraints.scala
Last active June 12, 2019 12:26
Shows an inputText with multiple constraints, each of which will be reported on the form
inputText("validationExample", "messages", required() ++ isNumber)