filetreepanel.js

来自「EXTJS做的网络硬盘系统..........」· JavaScript 代码 · 共 22 行

JS
22
字号
FileTreePanel = Ext.extend(Ext.tree.TreePanel, {
	constructor : function(_cfg) {
		Ext.apply(this, _cfg);
		FileTreePanel.superclass.constructor.call(this, {
			region : 'center',
			split : true,
			margins : '-1 -1 2 -1',
			autoScroll : true,
			lines : true,
			loader : new Ext.tree.TreeLoader({
				dataUrl : 'getDirectories.action'
			}),
			root : new Ext.tree.AsyncTreeNode({
				id : '*',
				iconCls : 'db-icn-world',
				text : '根目录'
			})
		});
	}
});

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?