PopupWindow
Use this element to show a popup window like a tooltip or a popup menu.
Note: It isn’t allowed to access properties of elements within the popup from outside of the PopupWindow
.
Properties
close-policy
enum PopupClosePolicy default: close-on-click
PopupClosePolicy
close-on-click
: Closes thePopupWindow
when user clicks or presses the escape key.close-on-click-outside
: Closes thePopupWindow
when user clicks outside of the popup or presses the escape key.no-auto-close
: Does not close thePopupWindow
automatically when user clicks.
By default, a PopupWindow closes when the user clicks. Set this to false to prevent that behavior and close it manually using the close()
function.
Functions
show()
Show the popup on the screen.
close()
Closes the popup. Use this if you set the close-policy
property to no-auto-close
.
© 2024 SixtyFPS GmbH