✌️
This commit is contained in:
parent
a62fe67e25
commit
a5ece57e3d
3 changed files with 13 additions and 14 deletions
12
src/web/app/desktop/scripts/input-dialog.js
Normal file
12
src/web/app/desktop/scripts/input-dialog.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
const riot = require('riot');
|
||||
|
||||
module.exports = (title, placeholder, defaultValue, onOk, onCancel) => {
|
||||
const dialog = document.body.appendChild(document.createElement('mk-input-dialog'));
|
||||
return riot.mount(dialog, {
|
||||
title: title,
|
||||
placeholder: placeholder,
|
||||
'default': defaultValue,
|
||||
onOk: onOk,
|
||||
onCancel: onCancel
|
||||
});
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue