电竞比分网-中国电竞赛事及体育赛事平台

分享

Ext 動態(tài)加載樹

 實力決定地位 2012-06-23
var leftTree=new Ext.tree.TreePanel({
id:"lefttree",
title:"左側(cè)樹",
loader:new Ext.tree.TreeLoader({
//這樣寫會自動創(chuàng)建一個treeloader
//dataUrl:"",
listeners:{
'beforeload':function(loader,node){
this.baseparams.text=node.attributes.text;
}
}
}),
root:new Ext.tree.AsyncTreeNode({
id:"root",
text:"根節(jié)點",
expanded:true,
leaf:false
}),
autoScroll:true,
rootVisible:true,
collapsible:true
});
 
要求數(shù)據(jù)源返回:
[{id:"1",text:"測試節(jié)點",leaft:false},{id:"2"}]

    本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
    轉(zhuǎn)藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約