Skip to content

JSON data to tree #11

@Umar-Mukhtar

Description

@Umar-Mukhtar

I am unable to load the tree when json data is passed to children object in the model. Why is that?

When
-children: [] and dynamically assign when json data received tree fails.

When
children: [
// { name: "Annabelle", id : '1', isOpen : true,isChecked:true, children : [
// { name: "Arnie", cssClass : 'page', id : '5',isChecked:true, children : [] },
// { name: "Anders", cssClass: 'page', id: '6', isChecked: true, children: [] },
// { name: "Apple", cssClass: 'page', id: '7', isChecked: true, children: [] }
// ]
// }
this works like charm. Why dynamic assignment is not bieng done. Please help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions