简体   繁体   中英

Sencha Touch 2: tapping Ext.Msg.show that have no buttons

I want to display the popup message without any buttons.

Ext.Msg.show({
   title: '',
   message: 'Some text goes here...',
   buttons : []
});

It works fine. How to make it disappeared when you tap on it?

I tried for you and i got what you want

    Ext.Msg.show({
        title: 'Title',
        message: 'Some text goes here...',
        itemId : 'showMsg',
        buttons : [],
        listeners:[ 
            {
                element: 'element',
                delegate: '',
                event: 'tap',
                fn: function() {
                    this.hide();
                }
            }]
    });

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM