mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-02-21 17:32:47 +01:00
add input type to prompt dialog
This commit is contained in:
parent
64207df15e
commit
ec90e010dc
@ -281,7 +281,8 @@ namespace OS {
|
|||||||
* {
|
* {
|
||||||
* title: string, // window title
|
* title: string, // window title
|
||||||
* label: string, // label text
|
* 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);
|
$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) => {
|
(this.find("btnOk") as tag.ButtonTag).onbtclick = (e) => {
|
||||||
if (this.handle) {
|
if (this.handle) {
|
||||||
this.handle($input.val());
|
this.handle($input.val());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user