Results 1 to 2 of 2

Thread: Configure Ext.msg

  1. #1
    Sencha User
    Join Date
    Mar 2011
    Vote Rating

    Default Configure Ext.msg

    I don't understand how to use Ext.MessageBox.
    I know how to create an alert message ( Ext.msg.alert() ) but I don't know how to configure options (ui, width ...).

    Any help or examples ?

    Thank you


  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    ui is going to be pretty much CSS. You can specify the ui on the buttons but that's about it.

    Width is controlled by the message you put in there. If you need a specific width, you are going to have to use show instead of alert. alert is just a convenience method that configures the show method.

        width: 300,
        height: 300,
        cls: "myBox",
        buttons: [
            { text : "Ok", ui : "confirm" }
        title: "MessageBox",
        msg: "My custom alert box"
    Look at the show method for config options
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2

    Think my support is good? Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Similar Threads

  1. Configure GXT with GWT Designer
    By zenqw1988 in forum Community Discussion
    Replies: 1
    Last Post: 20 May 2011, 12:33 AM
  2. Need to configure jetty - help
    By abdula in forum Ext GWT: Discussion
    Replies: 0
    Last Post: 15 Dec 2009, 10:02 AM
  3. How to configure EXT js to Struts 2.0
    By Srini#55 in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 29 May 2008, 8:25 AM
  4. grid configure
    By rush2samy in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 1 Nov 2007, 6:32 AM
  5. configure extjs for php
    By rhasan_82 in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 19 Jul 2007, 3:28 AM

Posting Permissions

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