版博士V2.0程序
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 

35 líneas
818 B

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