Ext6.2treepanel默认显示向右,如何设置向左
Ext.define('Platform.view.authority.jobTab', {
extend: 'Ext.tree.Panel',
xtype: 'tree-xml',
alias: 'widget.jobtob',
// xtype: 'jobtob',
// requires: [
// 'Ext.data.TreeStore',
// ],
// viewModel: {
// type: 'jobtree'
// },
//
//
// items: [{
// xtype: 'treelist',
// bind: '{navItems}'
// }],
requires: [
'Ext.data.TreeStore',
'Platform.store.authority.tab'
],
loader: 'Ext.tree.TreeLoader',
items: [ {
xtype: 'treelist',
reference: 'navigationTreeList',
itemId: 'navigationTreeList',
store: {
proxy: {
type: 'ajax',
url: Platform.config.Http.url + '/organization/list',
actionMethods: {
read: 'GET'
},
cors: true,
withCredentials: true,
useDefaultXhrHeader: false,
reader: {
type: 'json',
}
},
},
// listeners: {
// selectionchange: 'onNavigationTreeSelectionChange'
// }
}]
//
// requires: [
// 'Ext.data.TreeStore',
// ],
//
// height: 400,
// width: 350,
// useArrows: true,
//
// store: {
// proxy: {
// type: 'ajax',
// url: Platform.config.Http.url + '/organization/list',
// actionMethods: {
// read: 'GET'
// },
// cors: true,
// withCredentials: true,
// useDefaultXhrHeader: false,
// reader: {
// type: 'json',
//
// }
// },
//
// root: {
// expanded: true,
//
// },
//
// folderSort: true,
//
//
// },
});