2 Replies Latest reply: Jul 25, 2017 9:37 AM by Darius Pranskus RSS

    Displaying Qlik Sense style modal dialog

    Darius Pranskus

      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

        • Re: Displaying Qlik Sense style modal dialog
          Andrey Khoronenko

          Hi,

           

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

            • Re: Displaying Qlik Sense style modal dialog
              Darius Pranskus

              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