UserPassDialog¶
- component fbx.ui.dialog.UserPassDialog¶
UserPassDialog is a
fbx.ui.dialog.Dialog
with a message and two input fields, one for username, one for password.UserPassDialog inherits all properties from
fbx.ui.dialog.Dialog
.It returns 2 data entries,
user
containing user name, andpassword
containing password.A text input dialog.¶
Component { id: userPassDialog UserPassDialog {} } function run() { Dialog.create(self, userPassDialog, { title: "Identification", text: "Please enter your credentials" }).then(function(data) { console.log("User/pass:", data.user, data.password); }); }