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

送分小仙女□ 提交于 2019-12-20 06:13:24

问题


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?


回答1:


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();
                }
            }]
    });


来源:https://stackoverflow.com/questions/17596316/sencha-touch-2-tapping-ext-msg-show-that-have-no-buttons

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!