问题
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