Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save languanghao/28c9c76288f17efe96947654394384c9 to your computer and use it in GitHub Desktop.
Save languanghao/28c9c76288f17efe96947654394384c9 to your computer and use it in GitHub Desktop.
nest tree data
var tree = {
name : 'Root',
open : true,
children : [{
name : 'level 1',
open : false,
children : [{
name : 'level 1-1',
open : false,
}, {
name : 'level 1-2',
open : false,
},
]
}, {
name : 'level 2',
open : false,
}, {
name : 'level 3',
open : false,
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment