title: How to change the way an ExtJS button behaves?
body: <p>I have a problem regarding behaviour of an ExtJS Button. When clicked, it is supposed to call a specific controller. My problem: I need to add a dialog box, asking the user to confirm his action(for example: are you sure you want to print? YES/NO). The first button in my code example is the old one, while the second button is the one I am trying to change. Code in the snippet is currently displaying the dialog box, but it doesn't do anything when YES or NO is clicked.</p>
  
  <p>I am far from being an expert in ExtJS(my understanding of the framework could be wrong), please keep that in mind.</p>
  
  <pre><code>this.buttons = [{
              text:'Print',
              action:'print',
              iconCls:'icon-excel',
              href: 'print/someFile.docx'
          },{
  
              text:'Print',
              handler:function(){
  
                  Ext.MessageBox.confirm({
                      title:"Print",
                      msg:"Are you sure about this?",
                      buttons: Ext.Msg.YESNO,
                      action:'print'
                      href: 'print/someFile.docx',
                      icon: Ext.Msg.QUESTION
  
           });
          },              
          }];
  </code></pre>