-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add initial Popover component implementation #6332
Conversation
61ddb5c
to
a69ab61
Compare
...-flow-integration-tests/src/test/java/com/vaadin/flow/component/popover/tests/PopoverIT.java
Outdated
Show resolved
Hide resolved
...-flow-integration-tests/src/test/java/com/vaadin/flow/component/popover/tests/PopoverIT.java
Outdated
Show resolved
Hide resolved
* Constructs an empty popover. | ||
*/ | ||
public Popover() { | ||
getElement().getNode().addAttachListener(this::attachComponentRenderer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be moved to onAttach
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was added in Dialog
in this PR: vaadin/vaadin-dialog-flow#128. I'm not sure if onAttach
works the same as getNode().addAttachListener()
so I'd prefer to keep this in line with the Dialog
logic.
...flow-parent/vaadin-popover-flow/src/main/java/com/vaadin/flow/component/popover/Popover.java
Outdated
Show resolved
Hide resolved
...flow-parent/vaadin-popover-flow/src/main/java/com/vaadin/flow/component/popover/Popover.java
Outdated
Show resolved
Hide resolved
...flow-parent/vaadin-popover-flow/src/main/java/com/vaadin/flow/component/popover/Popover.java
Show resolved
Hide resolved
...flow-parent/vaadin-popover-flow/src/main/java/com/vaadin/flow/component/popover/Popover.java
Outdated
Show resolved
Hide resolved
...flow-parent/vaadin-popover-flow/src/main/java/com/vaadin/flow/component/popover/Popover.java
Outdated
Show resolved
Hide resolved
cac0276
to
d8216b5
Compare
|
This ticket/PR has been released with Vaadin 24.5.0. |
Description
Part of vaadin/platform#5271
The following logic is implemented:
PopoverChildrenTest
copied fromDialog
HasStyle
PopoverHasStyleTest
copied fromDialog
setTarget()
andgetTarget()
setFor()
andgetFor()
setPosition()
andgetPosition()
PopoverPosition
enum is a copy ofTooltipPosition
Type of change