版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IHTMLDialogElement.d.ts 669 B

12345678910111213141516171819202122232425262728
  1. import Event from '../../event/Event';
  2. import IHTMLElement from '../html-element/IHTMLElement';
  3. /**
  4. * HTML Dialog Element.
  5. *
  6. * Reference:
  7. * https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement.
  8. */
  9. export default interface IHTMLDialogElement extends IHTMLElement {
  10. open: boolean;
  11. returnValue: string;
  12. oncancel: (event: Event) => void | null;
  13. onclose: (event: Event) => void | null;
  14. /**
  15. * Closes the dialog.
  16. *
  17. * @param [returnValue] ReturnValue.
  18. */
  19. close(returnValue?: string): void;
  20. /**
  21. * Shows the modal.
  22. */
  23. showModal(): void;
  24. /**
  25. * Shows the dialog.
  26. */
  27. show(): void;
  28. }