/// <summary>
 /// Closes the modal and invokes the <see cref="OnClose"/> event with the specified <paramref name="modalResult"/>.
 /// </summary>
 /// <param name="modalResult"></param>
 public void Close(NoJSModalResult modalResult)
 {
     OnClose?.Invoke(modalResult);
 }
 /// <summary>
 /// Closes the modal and invokes the <see cref="OnClose"/> event.
 /// </summary>
 public void Cancel()
 {
     OnClose?.Invoke(NoJSModalResult.Cancel());
 }