Skip to content
Snippets Groups Projects
Commit a5ece57e authored by syuilo's avatar syuilo
Browse files

✌️

parent a62fe67e
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ module.exports = (me) ~>
]
riot.mixin \input-dialog do
input-dialog: require './scripts/input-dialog.ls'
input-dialog: require './scripts/input-dialog'
riot.mixin \update-avatar do
update-avatar: require './scripts/update-avatar.ls'
......
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
});
};
# Input Dialog
#================================
riot = require 'riot'
module.exports = (title, placeholder, default-value, on-ok, on-cancel) ~>
dialog = document.body.append-child document.create-element \mk-input-dialog
riot.mount dialog, do
title: title
placeholder: placeholder
default: default-value
on-ok: on-ok
on-cancel: on-cancel
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment