LoginDialog

This is an overview of the most common usage of LoginDialog. For more information about the available properties, methods, or events, head over to the complete API documentation for LoginDialog.

The login() method shows a dialog where the user can provide login credentials.

The method is part of the dialogs module.


Basic use

The login() method is available globally. You can call it anywhere in your app.

login("Your message", "Username field value", "Password field value").then(result => {
  console.log(`Dialog result: ${result.result}, user: ${result.userName}, pwd: ${result.password}`);
});

Configure dialog options

login({
  title: "Your login title",
  message: "Your login message",
  okButtonText: "Your OK button text",
  cancelButtonText: "Your Cancel button text",
  userName: "Username field value",
  password: "Password field value"
}).then(result => {
  console.log(`Dialog result: ${result.result}, user: ${result.userName}, pwd: ${result.password}`);
});
Contributors