This commit is contained in:
JFH
2020-12-30 17:09:29 +01:00
parent 5bb4d8343b
commit d37494c2af
13 changed files with 710 additions and 300 deletions

View File

@@ -0,0 +1,11 @@
// eslint-disable-next-line node/no-unpublished-import
import AlertDialog from 'elix/define/AlertDialog.js';
const dialog = new AlertDialog();
const seAlert = (type, text) => {
dialog.textContent = text;
dialog.choices = (type === 'alert') ? ['Ok'] : ['Cancel'];
dialog.open();
};
window.seAlert = seAlert;