So i made a simple app with 4 regions, north, east, south and west. I want to load a treepanel(static) in the west region. My code for the westregion is as follows:
........................
{
region: 'west',
title: 'Hierarchy',
iconCls:'icon-map',
width: 250,
items: treepanel
}
........................
My panel and store are the one from the docs tutorial and looks as follows:
var store = Ext.create('Ext.data.TreeStore', {
root: {
text: "/",
expanded: true,
children: [
{ text: "detention", leaf: true },
{ text: "homework", expanded: true, children: [
{ text: "book report", leaf: true },
{ text: "alegrbra", leaf: true}
] },
{ text: "buy lottery tickets", leaf: true }
]
}
});
var treepanel = Ext.create('Ext.tree.Panel', {
title: 'Simple Tree',
width: 200,
height: 150,
store: store,
rootVisible: true,
});
The only problem is that the treeview is not showing.. Anybody know how to fix this?