Docs

Documentation versions (currently viewingVaadin 25.4 (pre-release))

Move Components with Drag & Drop

Rearrange a view by dragging its components, in the view or in the Outline.

Rearrange a view by dragging its components, in the view itself or in the Outline. Copilot moves the lines of code that add them.

Reorder a form, in the view and in the Outline
  1. In Edit mode, click a component to select it. Its badge names the component type. Drag the component by the badge.

  2. Drag it to its new place and release. In a form, aim for the thin strip at the left edge of a field: the component goes before that field.

  3. When the target is small or crowded, open the Outline. It shows the view’s components as a tree.

  4. Drag a row in the Outline to move that component. Here, Birthday moves to the top of the form.

Where a Component Goes

While you drag, drop zones show where the component can go. In a form layout, the drop zone before a field is a narrow strip at the field’s left edge. When the drop zone you want is hard to hit, drag in the Outline instead.