GWT dispose modal dialog by clicking outside of it

♀尐吖头ヾ 提交于 2019-12-13 17:15:35

问题


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.

Is there a way to do this in GWT?


回答1:


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



来源:https://stackoverflow.com/questions/6090270/gwt-dispose-modal-dialog-by-clicking-outside-of-it

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!