update master to V7
This commit is contained in:
12
src/editor/dialogs/seSelectDialog.js
Normal file
12
src/editor/dialogs/seSelectDialog.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import SePlainAlertDialog from './SePlainAlertDialog.js';
|
||||
|
||||
const seSelect = async (text, choices) => {
|
||||
const dialog = new SePlainAlertDialog();
|
||||
dialog.textContent = text;
|
||||
dialog.choices = choices;
|
||||
dialog.open();
|
||||
const response = await dialog.whenClosed();
|
||||
return response.choice;
|
||||
};
|
||||
|
||||
window.seSelect = seSelect;
|
||||
Reference in New Issue
Block a user