add input type to prompt dialog

This commit is contained in:
lxsang 2020-07-10 16:06:49 +02:00
parent 64207df15e
commit ec90e010dc

View File

@ -281,7 +281,8 @@ namespace OS {
* {
* title: string, // window title
* label: string, // label text
* value: string // user input text
* value: string, // user input text
* type: string // input type: text or password
* }
* ```
*
@ -318,6 +319,11 @@ namespace OS {
$input.val(this.data.value);
}
if (this.data && this.data.type)
{
($input[0] as HTMLInputElement).type = this.data.type
}
(this.find("btnOk") as tag.ButtonTag).onbtclick = (e) => {
if (this.handle) {
this.handle($input.val());