12 lines
269 B
JavaScript
12 lines
269 B
JavaScript
import * as riot from 'riot';
|
|
|
|
export default (title, onOk, onCancel) => {
|
|
const dialog = document.body.appendChild(document.createElement('mk-input-dialog'));
|
|
return riot.mount(dialog, {
|
|
title: title,
|
|
type: 'password',
|
|
onOk: onOk,
|
|
onCancel: onCancel
|
|
});
|
|
};
|