PinDialog

component fbx.ui.dialog.PinDialog

PinDialog is a fbx.ui.dialog.Dialog with a message and a PIN input. PIN is a 4-digit password.

PinDialog inherits all properties from fbx.ui.dialog.Dialog.

It returns a single data entry text, containing the entered PIN.

../../../_images/pindialog.png

A PIN-input dialog.

Component {
    id: pinDialog
    PinDialog {}
}

function run()
{
    Dialog.create(self, pinDialog, {
        title: "Authentication required",
        text: "Please enter your PIN"
    }).then(function(data) {
        if (data.text == "1234")
            console.log("PIN OK");
        else
            console.log("PIN failed");
    });
}