Interface FormRow

All Superinterfaces:
FormLayoutNode

public interface FormRow extends FormLayoutNode
A row layout node used to arrange inputs horizontally within a form. Created with layout.createRow(name) (see FormLayout.createRow(String)) and populated with addChild(FormLayoutNode)/addChild(ContextParameter), typically built inputs placed side by side.

Example:


 def layout = form.layout()

 layout.addChild(
     layout.createRow("row1")
         .addChild(input1)
         .addChild(input2)
 )
 
Since:
17.0 - Paloma
See Also:
  • Method Details

    • addChild

      FormRow addChild(FormLayoutNode child)
      Attaches child to this row.
      Specified by:
      addChild in interface FormLayoutNode
      Parameters:
      child - the layout node to attach
      Returns:
      this FormRow, so that calls can be chained
      Since:
      17.0 - Paloma
    • addChild

      FormRow addChild(ContextParameter child)
      Attaches a built input directly to this row.
      Specified by:
      addChild in interface FormLayoutNode
      Parameters:
      child - the input to attach, typically built with a create...Entry(...).buildFormInput() call
      Returns:
      this FormRow, so that calls can be chained
      Since:
      17.0 - Paloma