mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-05 21:48:59 +01:00
56571c6fc7
- Fix some event listeners - Add getCompleted() promise that resolves when the dialog closes. - Et2Dialog.alert() returns the promise directly, other static methods return the Et2Dialog to avoid breaking existing code You can now wait for a dialog with: Et2Dialog.show_prompt(null,"Name?").getComplete().then(([button_id,value]) => console.log(value)); or using async: [button_id, value] = await Et2Dialog.show_prompt(null,"Name?").getComplete(); if(button_id === Et2Dialog.BUTTON_OK) {...} |
||
---|---|---|
.. | ||
Et2Dialog.ts | ||
Et2DialogContent.ts | ||
Et2DialogOverlay.ts |