Skip to content

Commit bdaf967

Browse files
authored
Merge pull request #332 from NativeScript/niliev/login-dialog
[DO NOT MERGE] Hints in login dialog
2 parents 96cb40e + 70b023d commit bdaf967

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

Diff for: app/ng-ui-widgets-category/dialogs/login-dialog/login-dialog.component.ts

+11-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component } from "@angular/core";
2-
import { login, LoginResult } from "tns-core-modules/ui/dialogs";
2+
import { login, LoginOptions, LoginResult } from "tns-core-modules/ui/dialogs";
33

44
@Component({
55
moduleId: module.id,
@@ -8,13 +8,16 @@ import { login, LoginResult } from "tns-core-modules/ui/dialogs";
88
export class LoginDialogComponent {
99
displayLoginDialog() {
1010
// >> login-dialog-code
11-
let options = {
12-
title: "Login",
13-
message: "Login",
14-
username: "john_doe",
15-
password: "",
16-
okButtonText: "Ok",
17-
cancelButtonText: "Cancel"
11+
let options: LoginOptions = {
12+
title: "Login Form",
13+
message: "Enter your credentials",
14+
okButtonText: "Login",
15+
cancelButtonText: "Cancel",
16+
neutralButtonText: "Neutral",
17+
userNameHint: "Enter your username",
18+
passwordHint: "Enter your password",
19+
userName: "john_doe",
20+
password: "123456"
1821
};
1922

2023
login(options).then((loginResult: LoginResult) => {

0 commit comments

Comments
 (0)