blob: b06d011c6b1ed5fd82ce906fc89930393b0d8bd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import * as riot from 'riot';
export default (title, placeholder, defaultValue, onOk, onCancel) => {
const dialog = document.body.appendChild(document.createElement('mk-input-dialog'));
return (riot as any).mount(dialog, {
title: title,
placeholder: placeholder,
'default': defaultValue,
onOk: onOk,
onCancel: onCancel
});
};
|