1. #1
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    3
    Vote Rating
    0
    sencha_username is on a distinguished road

      0  

    Default Answered: possible to show Ext.Msg without buttons?

    Answered: possible to show Ext.Msg without buttons?


    I'm basically trying to show a "flash message" with Sencha Touch 2 and I figured I'd try a prompt with a timeout because I saw a similar method used with Ext.js here:
    http://dev.sencha.com/deploy/ext-4.0...x/msg-box.html

    the problem I'm facing, though is that I cannot find a way to suppress the display of any buttons. I'm doing this:

    Code:
                  var flash_msg = Ext.Msg.show({
                  title: "",
                  message: "You did it!",
                  buttons: [{
                  }] // buttons                     
                }); // show()
                setTimeout(function (target) {
                    flash_msg.destroy();
                }, 1500, flash_msg);
    if anyone has ideas on how to hide the buttons, or create a better flash message, it would be appreciated.

  2. try this:
    Code:
    Ext.Msg.show({
       title: 'Prompt',
       message: 'prompt message displays here!',
       width: 300,
       buttons: []
    });

  3. #2
    Sencha User
    Join Date
    Apr 2012
    Location
    ShenZhen, China
    Posts
    52
    Answers
    11
    Vote Rating
    3
    liaoyiwu is on a distinguished road

      0  

    Default


    try this:
    Code:
    Ext.Msg.show({
       title: 'Prompt',
       message: 'prompt message displays here!',
       width: 300,
       buttons: []
    });

Thread Participants: 1

Tags for this Thread