Sencha Touch 2:扩展消息显示并点按任意位置以隐藏 [英] Sencha Touch 2: Ext.Msg.show and tapping anywhere to hide
本文介绍了Sencha Touch 2:扩展消息显示并点按任意位置以隐藏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想显示不带任何按钮的弹出消息.如果您轻按该消息,则该消息将消失.该代码正常工作,并取自 Sencha Touch 2:点击没有按钮的Ext.Msg.show ,谢谢Viswa.
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?
推荐答案
您可以使用hideOnMaskTap
配置.
hideOnMaskTap: true
这篇关于Sencha Touch 2:扩展消息显示并点按任意位置以隐藏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文