Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
d_pranskus
Partner - Creator III
Partner - Creator III

Displaying Qlik Sense style modal dialog

Hi Sense Experts

Not sure if it's possible, but could someone help me how to display QlikSense style dialog box and get the user response. I am developing an extension and want to provide to the user a nice dialog box for confirmation

Qliksense Dialog Box.png

Thanks

1 Solution

Accepted Solutions
d_pranskus
Partner - Creator III
Partner - Creator III
Author

Hi

It looks like this is possible:

define([

    "assets/client/dialogs/confirm-dialog/confirm-dialog"

], function (confirmDialog) {

    "use strict";

    return {

        confirm: function () {

            return confirmDialog.show({

                text: "Are you sure you want to delete the item \"" + item.name + "\"?",

            }).then(

                function () {

                    // User clicked OK, do the processing

                    return true;

                },

                function () {

                    // User clicked Cancel

                    return false

                }

            );

        }

    }

});

Qliksense Confirmation.png

View solution in original post

3 Replies
ahaahaaha
Partner - Master
Partner - Master

Hi,

You need either create yourself or look for a ready extension.

d_pranskus
Partner - Creator III
Partner - Creator III
Author

Hi

It looks like this is possible:

define([

    "assets/client/dialogs/confirm-dialog/confirm-dialog"

], function (confirmDialog) {

    "use strict";

    return {

        confirm: function () {

            return confirmDialog.show({

                text: "Are you sure you want to delete the item \"" + item.name + "\"?",

            }).then(

                function () {

                    // User clicked OK, do the processing

                    return true;

                },

                function () {

                    // User clicked Cancel

                    return false

                }

            );

        }

    }

});

Qliksense Confirmation.png

Anonymous
Not applicable

Hi,
How I should call the function to show the confirm dialog in my js script file ?
Thanks a lot,
Giovanni