PDA

View Full Version : Simple attempt to provide a model and in-memory data to tree panel fails



bimargulies
28 Jul 2012, 3:11 PM
var store = Ext.create('Ext.data.TreeStore', {
root: data.baseLinguistics,
model:'BaseLinguisticsLegendModel'});
bltree.setRootNode(store);


To put this into perspective, simply passing a tree of NodeInterface-compatible objects into setRootNode works fine, with no explicit creation of a store or a model. I expect the above to decorate my model with NodeInterface and go along happily, but nothing is rendered in my tree at all.