linb.ComFactory.newCom('App.Left.Navigation', function () {
SPA._Mainlayout.append(this._Navigationtreebar, 'before');
this._Navigationtreebar.setItems([{ "id": "itema", "sub": ["suba1", "sub a2", "sub a3", "sub a4"], "caption": "itema" }, { "id": "item b", "sub": ["sub b1", "sub b2", "sub b3", "sub b4"], "caption": "item b"}]);
// 在这里设置事件
this.setEvents({
myEvent: SPA._NavigtionItemClick
});
});
这是在调用页面加载的项目,这是分布式UI的Items要放在调用页面加载的。请问能不能ajax加载分布式UI的items能不能在本身的类中实现,而不是在调用页面实现。谢谢!!! |