-
9 Apr 2012 5:06 PM #1
Unanswered: Ext.Msg.confim: pass in class
Unanswered: Ext.Msg.confim: pass in class
What is the correct way to send a config object to a Msg object?
Code:Ext.Msg.confirm('Really?', 'Are you sure you want to deleteThis?', function(buttonId, value){ }, {cls: 'confirmationMSGBox'} );
-
10 Apr 2012 6:20 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
- Answers
- 3102
Are you just wanting to add a cls?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
10 Apr 2012 8:26 AM #3
-
10 Apr 2012 8:37 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
- Answers
- 3102
Just do Ext.Msg.addCls('...')
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
10 Apr 2012 9:30 AM #5
will this work if I want two different styles, for several Msgs?
I want to add the class to only one alert, not all.
-
10 Apr 2012 10:30 AM #6Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
- Answers
- 3102
Ext.Msg is a global instance of Ext.Messagebox so if you add a class in one spot then it will be affected it other instances not matter how you tried to configure it.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
10 Apr 2012 11:18 AM #7
What I'm trying to do is simple.
I want the buttons of the alerts to use all the available width. The problem is if I set it to, let's say 98%, it works for alerts with one button but in alerts with more than one button, we can only see the first button. How can I accomplish that?


Reply With Quote