在这里我已经在sencha应用程序中使用的代码,因为我想添加一个提醒提示输入您的密码!当indexpnl launch.Here代码在启动警报
var mainContainer = Ext.create('Ext.Panel', {
id: 'mainContainer',
layout: 'card',
width: '100%',
height: '100%',
showAnimation: {
type: 'slideIn',
direction: 'right'
},
items: [indexpnl,loginpnl,registerpnl,homepnl,viewitemspnl,forgpanel,myfriendpro,notifypanel,mapapnel,friendviewitemspnl]
});
Ext.Viewport.add({
xtype: 'panel',
items: [mainContainer]
});
警报
function alertprompt()
{
var retVal = prompt("Enter your password? ", "Password");
}
当应用程序启动indexpnl显示first.I要显示与that.Where上述警告,我应该要调用的方法alertprompt()显示在启动?PLease帮助解决这个问题
我应该在哪里要在主容器 – Fazil
它不工作 –
添加此监听器......在mainContainer上或Ext.Viewport.add – Fazil