UI-Designer: Allow multiple children for Dialog component

Description

UI-Designer: Enable multiple immediate children for Dialog-based components

Current:
In UI-Designer, only one Element can be added to a Components that extend (Vaadin-)Dialog as (immediate)-child.

If Dialog-based component somehow gets more than a single child, the UI-Designer is empty. (e.g. by duplicating the first child component).
None of the child components are visible.

To change:

  • Enable adding more than one child to Dialog-based components by drag/drop

  • Show child Components in DesignerUI when there is more than one child

Comment:
As "Dialog" implements "com.vaadin.flow.component.HasComponents" it is basically able to hold multiple (immediate) children.

Environment

None

Activity

Show:
FH
March 30, 2021, 9:04 AM

If you want multiple children in a dialog, simply add a layout first.

Assumed we implement this feature, how should multiple children be layouted in the dialog? The DnD handling for this would be very tricky, since there is no defined layout in dialog per default. So a lot of effort for hardly any benefit.

Assignee

FH

Reporter

JM

Labels

None

Components

Sprint

Priority

Low