EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: dailyblog on October 27, 2016, 06:09:27 PM



Title: tree
Post by: dailyblog on October 27, 2016, 06:09:27 PM
Is this setting supported?
$("#tree").tree({
    id:"...",
    parentId:"...",
    text:"..."
})

then json data can be loaded as below:
[
{id:1,parentId:'-1',text:'Node1'},
{id:2,parentId':1,text:'Node2'},
{id:3,parentId':2,text:'Node3'},
{id:4,parentId':2,text:'Node4'}
]

I think "loadfilter" function is more difficult than above


Title: Re: tree
Post by: jarry on October 28, 2016, 08:52:50 AM
Please look at this topic http://www.jeasyui.com/forum/index.php?topic=1265.0