-
11 Nov 2009 5:01 PM #1
confirm with ok - cancel buttons
confirm with ok - cancel buttons
just wondering how can I change a confirm dialog so that the button are ok and cancel
vs. yes and no.
looks like I need to define a messagebox vs. using the shorthand confirm.Code:Ext.MessageBox.confirm('title', 'message',function(s){ });
-
11 Nov 2009 5:07 PM #2
Confirm is just a shortcut for calling show(), so you can call that and pass in the appropriate options.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
11 Nov 2009 5:38 PM #3
Just to expand on that answer with an example...
Code:Ext.Msg.show({ title:'Do Something', msg: 'Ok or Cancel?', buttons: {yes: 'Ok', no: 'Cancel'}, // or Ext.Msg.OKCANCEL fn: Ext.emptyFn });-Shea
My Blog:VinylFox | Twitter:@VinylFox | JavaScript Magazine:JSMag | Curator of the Baltimore/DC JavaScript Meetup | Author: Learning ExtJS 3.x Book
ExtJS Extensions & Plugins: GMapPanel UX | HtmlEditor Buttons Plugin | Selection Enabler Plugin | Grid DataDrop Plugin | Additional Ext.Fx
Sencha Touch Plugins: Swipe Tabs | List Pull Refresh | Accelerometer Tabs
-
21 Mar 2013 4:35 AM #4
Hot Key Implementation for Message box buttons Yes, No , Cancle
Hot Key Implementation for Message box buttons Yes, No , Cancle
Hi,
Is there anybody implemented shortcut keys for message box yes, no cancle. like alt+y, alt+n, alt+c. I am having a requirement to achive the same. so any body implemented this feature, please share ur idea.
Thanks in advance
Gunasekar Jabbala



Reply With Quote

