mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-24 03:28:11 +09:00
14 lines
353 B
Plaintext
14 lines
353 B
Plaintext
# 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
|