update showcase

This commit is contained in:
lxsang
2021-03-30 20:06:32 +02:00
parent 3ff8f1a6eb
commit c3df98de9e
6 changed files with 18 additions and 5 deletions

View File

@ -140,7 +140,8 @@ class ShowCase extends this.OS.application.BaseApplication
{ text: "About dialog", id: "about" },
{ text: "File dialog", id: "file" },
{ text: "Text dialog", id: "text" },
{ text: "Multi-input dialog", id: "minputs" }
{ text: "Multi-input dialog", id: "minputs" },
{ text: "Multi key value dialog", id: "mkv" }
]
btrun.onbtclick = (e) =>
@ -228,6 +229,18 @@ class ShowCase extends this.OS.application.BaseApplication
})
.then (d) =>
@notify JSON.stringify(d)
when "mkv"
@openDialog("KeyValueDialog", {
title: "Multi key-values",
data: {
name: "John Doe",
email: "jd@mail.com",
where: "Anywhere on Earth"
}
})
.then (d) =>
@notify JSON.stringify(d)
else return