Topic: viewFilter , reload in mif.tree
var json=[
{
"property": {
"name": "company"
},
"children": [
{
"property": {
"name": "group1"
},
"children":[
{
"property": {
"name": "tom"
}
},
{
"property": {
"name": "jeff"
}
}
]
},
{
"property": {
"name": "group2"
},
"children":[
{
"property": {
"name": "norbert"
}
},
{
"property": {
"name": "jean"
}
}
]
}
]
}
];if run method viewFilter ( node ) (node = "group1"), it should show partial tree, like following:
var json=[
{
"property": {
"name": "group1"
},
"children":[
{
"property": {
"name": "tom"
}
},
{
"property": {
"name": "jeff"
}
}
]
}
];method tree.reload should show all tree view. thanks