Вот хороший образец для вас:
Ext.define('Fiddle.view.main.Main', {
extend: 'Ext.container.Container',
layout: 'border',
items: [ {
region: 'center',
title: 'Center region',
bodyPadding: 12,
html: 'center'
}, {
region: 'west',
title: 'Menu',
width: 200,
collapsible: true,
split: true,
bodyPadding: 12,
layout: 'anchor',
items: [{
xtype : 'treelist',
store : new Ext.data.TreeStore({
root: {
expanded: true,
children: [{
text: 'Home',
iconCls: 'x-fa fa-home',
children: [{
text: 'Messages',
iconCls: 'x-fa fa-inbox',
leaf: true
},{
text: 'Archive',
iconCls: 'x-fa fa-database',
children: [{
text: 'First',
iconCls: 'x-fa fa-sliders',
leaf: true
},{
text: 'No Icon',
iconCls: null,
leaf: true
}]
},{
text: 'Music',
iconCls: 'x-fa fa-music',
leaf: true
},{
text: 'Video',
iconCls: 'x-fa fa-film',
leaf: true
}]
},{
text: 'Users',
iconCls: 'x-fa fa-user',
children: [{
text: 'Tagged',
iconCls: 'x-fa fa-tag',
leaf: true
},{
text: 'Inactive',
iconCls: 'x-fa fa-trash',
leaf: true
}]
},{
text: 'Groups',
iconCls: 'x-fa fa-group',
leaf: true
},{
text: 'Settings',
iconCls: 'x-fa fa-wrench',
children: [{
text: 'Sharing',
iconCls: 'x-fa fa-share-alt',
leaf: true
},{
text: 'Notifications',
iconCls: 'x-fa fa-flag',
leaf: true
},{
text: 'Network',
iconCls: 'x-fa fa-signal',
leaf: true
}]
}]
}
})
}]
}]
});
Ext.application({
name: 'Fiddle',
mainView: 'Fiddle.view.main.Main',
launch: function() {
}
});