javascript - 在 extjs 中创建侧面可折叠面板导航是否正确?
问题描述
Ext.application({
name: 'Fiddle',
launch: function() {
var mainView = new Ext.panel.Panel({
xtype: 'panel',
//title: 'Container',
layout: 'border',
itemId: 'bigContainer',
height: '100vh',
items: [{
xtype: 'panel',
//title: 'Left Panel',
itemId: 'menuLeftPanel',
region: 'west',
scrollable: true,
//width: 300,
//height: 900,
dockedItems:
[{
xtype: 'tabpanel',
collapseMode: 'header',
//animCollapse: 200,
dock: 'left',
id: 'moduleTas',
itemId: 'moduleTabs',
width: 400,
collapsible: true,
headerPosition: 'left',
hideCollapseTool: true,
//activeTab: 0,
tabBarHeaderPosition: 0,
tabRotation: 0,
items: [{
xtype: 'panel',
scrollable: 'y',
tabConfig: {
xtype: 'tab',
iconCls: 'x-fa fa-home',
tooltip: "Home",
listeners:
{
click: function(btn, e, eOpts)
{
var tab = Ext.getCmp('moduleTas');
tab.toggleCollapse();
}
}
},
},
]
},
]
}],
renderTo: Ext.getBody()
});
}
});
解决方案
推荐阅读
- facebook-graph-api - 未显示审阅者姓名
- sublimetext - 在 Sublime 文本 4 中输入相同的字符时覆盖下一个字符
- ios - 为什么我们对 Xcode 中的静态库和框架有这种令人困惑的设置
- python - 尝试从 Reddit API 获取访问令牌时响应 400 'Bad Request'
- python - 使用 python 脚本运行 xfce4-terminal 下拉菜单,而不会立即关闭
- javascript - ReactJS:Javascript fetch 适用于桌面浏览器,但在 IOS safari 上返回 403 错误(未提供身份验证凭据)
- java - 添加一个动态按钮并在它被点击时指定一个方法
- c# - 安装 Neo4j Nuget 后项目无法构建
- python - 无法理解何时在 leetcode 问题中使用虚拟节点
- arrays - cv2 视频到图像数组