Initial commit 🍀
This commit is contained in:
commit
b3f42e62af
405 changed files with 31017 additions and 0 deletions
13
src/web/app/desktop/scripts/input-dialog.ls
Normal file
13
src/web/app/desktop/scripts/input-dialog.ls
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue