1. #1
    Ext User
    Join Date
    Jul 2009
    Posts
    2
    Vote Rating
    0
    phillipj is on a distinguished road

      0  

    Question Custom MessageBox Buttons

    Custom MessageBox Buttons


    Hi,

    I need to add an additonal buttons to the MessageBox to enable the addition of a "Yes To All" button. is their anyway i can accomplish this using the existing features within ExtJs.

    Thanks

  2. #2
    Sencha Premium Member
    Join Date
    Feb 2009
    Posts
    316
    Vote Rating
    3
    azuroff will become famous soon enough

      0  

    Default


    As long as you don't need more than 4 buttons in all, you can always use a different label for one of the existing buttons -

    Code:
    Ext.MessageBox.show({
      title: 'Example message box',
      msg: 'Example message goes here',
      buttons: {ok: 'Yes to all', yes: 'Yes', no: 'No', cancel: 'Cancel'}
    });
    The "ok", "yes", "no", "cancel" button ids are the only ones provided out-of-the-box.

  3. #3
    Ext User
    Join Date
    Jul 2009
    Posts
    2
    Vote Rating
    0
    phillipj is on a distinguished road

      0  

    Default


    Thank you azuroff that does the job perfectly.

  4. #4
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    79
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Moved to help. Please post here in the future.

  5. #5
    Ext JS Premium Member
    Join Date
    Sep 2009
    Posts
    29
    Vote Rating
    2
    allardp is on a distinguished road

      1  

    Default forget messagebox

    forget messagebox


    messagebox is way to restrictive, and in Ext4 it is NOT usable for custom buttons, so use simple window instead:

    Code:
    Ext.create("Ext.Window", {
     title: "yourtitle",
     bodyStyle: "padding:10px",
            html: "yourmessage",                
     buttons: [
             { text: "btn1", handler: yourhandler1 },
                    {text: "btn2", handler: yourhandler2 }
            ]
    }).show();

Similar Threads

  1. Custom buttons with MessageBox
    By hbonpard in forum Ext GWT: Discussion
    Replies: 4
    Last Post: 28 Jul 2010, 8:02 AM
  2. Adding custom buttons to Messagebox
    By mysticav in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 3 Nov 2009, 4:50 AM
  3. Custom buttons with MessageBox
    By Vikram1507 in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 27 Feb 2009, 10:23 AM
  4. Issues with Buttons & MessageBox Buttons in AIR
    By Juvs in forum Ext.air for Adobe AIR
    Replies: 0
    Last Post: 25 Sep 2008, 7:34 AM

Thread Participants: 3

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi