@ayonli/jsext
Version:
A JavaScript extension package for building strong and modern applications.
8 lines (6 loc) • 337 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;
export = Dialog;