I am trying to make the submit button on my PopupPanel hide the panel, but I cannot seem to get it to function properly. I am able to have a button on my entrypoint show the panel, but I cannot seem to get the PopupPanel to hide.
submitLinkPopup.btnSubmitLink.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
if(if conditions go here){
CallbackMethods.addLink(callback conditions go here);
//this is where I want to hide the panel
}
else{
Window.alert("Error: Fields cannot be empty");
}
}
});
popPanel.hide()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.