Results 1 to 7 of 7

Thread: Ext.Msg.confim: pass in class

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    24
    Vote Rating
    0
      0  

    Default 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'} );

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Are you just wanting to add a cls?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    24
    Vote Rating
    0
      0  

    Default

    Yes, for css styling.

  4. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Just do Ext.Msg.addCls('...')
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  5. #5
    Sencha User
    Join Date
    Mar 2012
    Posts
    24
    Vote Rating
    0
      0  

    Default

    will this work if I want two different styles, for several Msgs?

    I want to add the class to only one alert, not all.

  6. #6
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  7. #7
    Sencha User
    Join Date
    Mar 2012
    Posts
    24
    Vote Rating
    0
      0  

    Default

    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?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •