-
22 Sep 2010 12:07 PM #1
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
-
22 Sep 2010 12:37 PM #2
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 -
The "ok", "yes", "no", "cancel" button ids are the only ones provided out-of-the-box.Code:Ext.MessageBox.show({ title: 'Example message box', msg: 'Example message goes here', buttons: {ok: 'Yes to all', yes: 'Yes', no: 'No', cancel: 'Cancel'} });
-
22 Sep 2010 12:51 PM #3
-
22 Sep 2010 2:24 PM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,167
- Vote Rating
- 28
Moved to help. Please post here in the future.

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
5 Oct 2011 12:07 PM #5
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
-
Custom buttons with MessageBox
By hbonpard in forum Ext GWT: DiscussionReplies: 4Last Post: 28 Jul 2010, 8:02 AM -
Adding custom buttons to Messagebox
By mysticav in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 3 Nov 2009, 4:50 AM -
Custom buttons with MessageBox
By Vikram1507 in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 27 Feb 2009, 10:23 AM -
Issues with Buttons & MessageBox Buttons in AIR
By Juvs in forum Ext.air for Adobe AIRReplies: 0Last Post: 25 Sep 2008, 7:34 AM


Reply With Quote