[CLOSED] Configure the Confirm´s default button

  1. #1
    Attached Thumbnails Click image for larger version. 

Name:	ConfirmDialog.jpg 
Views:	81 
Size:	7.5 KB 
ID:	4381  
    Last edited by Daniil; Jun 19, 2012 at 2:06 PM. Reason: [CLOSED]
  2. #2
    Hi,

    I can suggest to use the defaultFocus functionality.
    http://docs.sencha.com/ext-js/4-1/#!...g-defaultFocus

    The "No" button has "2" index.

    Example
    Ext.Msg.on(
        "beforeshow", 
        function (win) {
            win.defaultFocus = 2;
        }, 
        null, {
            single : true
        }
    );
    Ext.Msg.confirm(titulo, descricao, function (btn) {
        if (btn == 'yes') {
            alert("Ext.Net");
        }
    });
  3. #3
    Thank you Daniil, Please mark it as closed

Similar Threads

  1. Still unable to make login button as default button
    By santhu12smart in forum 1.x Help
    Replies: 3
    Last Post: Oct 05, 2011, 8:13 AM
  2. [CLOSED] Button Confirm
    By majunior in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 10, 2011, 7:38 PM
  3. Confirm Box for Delete Button in the GridPanel
    By zibrohimov in forum 1.x Help
    Replies: 1
    Last Post: Jan 17, 2011, 5:01 PM
  4. [CLOSED] Configure default AjaxEvent failure window
    By jchau in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 15, 2009, 10:55 AM
  5. Replies: 4
    Last Post: Oct 30, 2008, 12:15 PM

Posting Permissions