Friday, July 18, 2014

How to display prompt in Alfresco Share

How to display prompt in Alfresco Share?




Alfresco.util.PopupManager.displayPrompt(
     {
        title: "Prompt Title",
        text: "Do you want to close the screen?",
        buttons: [
        {
           text: "Close",
           handler: function close_screen()
           {
                //Your javascript goes here
                this.destroy();
           }
        },
        {
           text: "Cancel",
           handler: function close_cancel()
           {
              this.destroy();
           },
           isDefault: true
        }]
     }); 





Hope this helps someone!



2 comments: