@ayonli/jsext
Version:
A JavaScript extension package for building strong and modern applications.
6 lines (5 loc) • 319 B
TypeScript
export default function Dialog(props: {
onCancel?: ((dialog: HTMLDialogElement) => void) | undefined;
onOk?: ((dialog: HTMLDialogElement) => void) | undefined;
}, ...children: HTMLElement[]): HTMLDialogElement;
export declare function closeDialog(dialog: HTMLDialogElement, returnValue: "OK" | "Cancel"): void;