Interface FormModal

All Superinterfaces:
FormLayoutNode

public interface FormModal extends FormLayoutNode
A modal layout node used to display form inputs in a popup dialog with an optional heading.
  • Method Details

    • setHeading

      FormModal setHeading(String heading)
      Sets the heading displayed as the title of the modal dialog.

      The heading is separate from the modal's name, which identifies the layout node and is supplied when the modal is created. Set the heading in the Init phase together with the rest of the layout, so the dialog renders with its title the first time the user opens it.

      Example:

      
       // Init element of a Form logic
       def layout = form.layout()
      
       layout.addChild(
           layout.createModal("lineItemDetails")
               .setHeading("Line Item Details")
       )
       
      Parameters:
      heading - text shown as the dialog title
      Returns:
      this FormModal, so that calls can be chained
      Since:
      17.1 - Paloma
      See Also:
    • addChild

      FormModal addChild(FormLayoutNode child)
      Specified by:
      addChild in interface FormLayoutNode
    • addChild

      FormModal addChild(ContextParameter child)
      Specified by:
      addChild in interface FormLayoutNode