我正在使用Ext JS 6.5.3.57。我有视图<{p>的文件Menu.js
// File /Users/donhuvy/Desktop/vy_sencha/app/view/menu/Menu.js
Ext.define('Acc.view.menu.Menu', {
extend: 'Ext.Panel',
xtype: 'menu_acc',
requires: [
'Ext.menu.Menu'
],
autoSize: true,
bodyPadding: 20,
width: 230,
items: {
xtype: 'menu',
floated: false,
docked: 'left',
alwaysOnTop: true,
items: [{
text: 'Cai dat He thong',
},{
text: 'Tien mat'
},{
text: 'regular item 3'
}]
}
})
档案app.js
// File /Users/donhuvy/Desktop/vy_sencha/app.js
/*
* This file launches the application by asking Ext JS to create
* and launch() the Application class.
*/
Ext.application({
extend: 'Acc.Application',
name: 'Acc',
requires: [
// This will automatically load all classes in the Acc namespace
// so that application classes do not need to require each other.
'Acc.*'
],
// The name of the initial view to create.
//mainView: 'Acc.view.main.Main'
mainView: 'Acc.view.menu.Menu'
});
结果
当我按下菜单项时,它会自动隐藏。单击菜单项后如何避免隐藏?