close method

void close (UserInput userInput)

Closes the dialog. userInput is passed on to closeCallback if a non-null callback is defined. if userInput is null, a non-null one is generated, with an empty String a button code.

Implementation

void close(UserInput userInput) {
  isopen = false;
//    closeReturnValue = userInput.buttonCode;
  dia.remove();
  if (isModal) diaContainer.remove();
  if (closeCallback != null){
    if(userInput == null){
      userInput = UserInput("", null, this);
    }
    closeCallback(userInput);
  }
}