问题
I want to display the popup message without any buttons. The message disappears if you tap on it. The code works fine and was taken from Sencha Touch 2: tapping Ext.Msg.show that have no buttons, thank you Viswa.
Ext.Msg.show({
title: 'Title',
message: 'Some text goes here...',
itemId : 'showMsg',
buttons : [],
listeners:[
{
element: 'element',
delegate: '',
event: 'tap',
fn: function() {
this.hide();
}
}]
});
How to make it disappeared when you tap anywhere on the screen, not on the popup message?
回答1:
You can use the hideOnMaskTap
config.
hideOnMaskTap: true
来源:https://stackoverflow.com/questions/17610380/sencha-touch-2-ext-msg-show-and-tapping-anywhere-to-hide