1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-24 19:48:17 +09:00
MisskeyIO/src/web/app/desktop/scripts/input-dialog.js

13 lines
333 B
JavaScript
Raw Normal View History

2017-02-18 17:43:31 +09:00
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
});
};