PromptDialog

component fbx.ui.dialog.PromptDialog

PromptDialog is a fbx.ui.dialog.Dialog with a message and an input field.

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

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

../../../_images/promptdialog.png

A text input dialog.

Component {
    id: promptDialog
    PromptDialog {}
}

function run()
{
    Dialog.create(self, promptDialog, {
        title: "Playlist creation",
        text: "Please enter a name for your new playlist"
    }).then(function(data) {
        console.log("Playlist is", data.text);
    });
}