The Button ( ) component renders as a button and typically defines an action taken when the button is clicked: On click, the ClickListener closure is executed.
new forms::Button("Submit",
{ submitClick -> Forms.submit();
Forms.navigateTo(new DocumentNavigation(documentType -> MyForm()))})