mirror of
https://github.com/hotomoe/hotomoe
synced 2024-12-17 08:08:17 +09:00
13 lines
333 B
JavaScript
13 lines
333 B
JavaScript
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
|
|
});
|
|
};
|