hippofish/src/web/app/desktop/scripts/input-dialog.ls

14 lines
353 B
Text
Raw Normal View History

2016-12-28 23:49:51 +01:00
# 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