Skip to content

Instantly share code, notes, and snippets.

@mgladdish
Created June 12, 2018 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgladdish/f7808e48efba1da70b192e5ff6222ac3 to your computer and use it in GitHub Desktop.
Save mgladdish/f7808e48efba1da70b192e5ff6222ac3 to your computer and use it in GitHub Desktop.
case class NestingCheckboxes[C <: Messages[C]](... nestedWidgets: Map[String, Widget]) extends NestingMultipleChoice[C] {
override val nestingMultipleChoiceWidget = new Checkbox(...) {
override def render(form: Form, errors: ValidationErrors, requestInfo: RequestInfo)(...): Future[String] = {
...
// pass result of templateChoices(form, errors, requestInfo) to my template and return the rendered result
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment