GWT通过在其外部单击来放置模式对话框 [英] GWT dispose modal dialog by clicking outside of it

查看:78
本文介绍了GWT通过在其外部单击来放置模式对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在对话框上有一个HSV颜色选择器,我想为用户提供几种处理对话框的方法.我有普通的按钮之类的,但我也想使它在用户单击外部时消失.

I have a HSV color selector on a dialog and I would like to provide user several ways to dispose the dialog. I have normal buttons and such but I would also like to make it disappear when user clicks outside of it.

在GWT中有没有办法做到这一点?

Is there a way to do this in GWT?

推荐答案

您可以启用

You can enable PopupPanel auto hide. When enabled, the popup will be automatically hidden when the user clicks outside of it.

这篇关于GWT通过在其外部单击来放置模式对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆