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

前端 未结 1 1267
轻奢々
轻奢々 2021-01-27 08:18

I want to display the popup message without any buttons.

Ext.Msg.show({
   title: \'\',
   message: \'Some text goes here...\',
   buttons : []
});
1条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-27 08:20

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

    0 讨论(0)
提交回复
热议问题